我试图让pe:remoteCommand在Prime Faces应用程序中工作,并且看不到调用托管bean方法。以下是我的代码
<p:selectOneMenu onchange="onPriElementCodeChange();"
id="myId" effect="highlight" tabindex="90"
value="#{myBean.value}">
<f:selectItems value="#{myBean.selectItems}" />
</p:selectOneMenu>
<pe:remoteCommand id="applyDataCommand" name="onPriElementCodeChange"
process="@this"
actionListener="#{userController.printMethodParams}">
function onPriElementCodeChange()
{
}
@ManagedBean
@ViewScoped
public class UserController {
public void printMethodParams()
{
System.out.println("*Called**");
}
}