pe:remoteCommand无法按预期工作

时间:2014-01-07 17:16:19

标签: jsf primefaces remotecommand

我试图让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**");
  }
}

0 个答案:

没有答案
相关问题