f:ajax listener never fired

筅森魡賤 提交于 2019-12-12 04:04:31

问题


i'm using JSF 2.0 primefaces 2.2 and Spring 3.0.5. I have a little problem usign f:ajax listener that wasn't fired. This is the code:

<h:form prependId="false" >
   <h:selectOneRadio value="#{autoBean.newAuto.marca}">
        <f:selectItem itemValue="aa"/>
        <f:selectItem itemValue="bb"/>
        <f:ajax event="click" listener="#{autoBean.update}" />
    </h:selectOneRadio>
</h:form>

and this is the method:

public void update(AjaxBehaviorEvent event)
{
}

any idea? Thank you in advance

UPDATE Sorry, but the problem isn't simply to explain...


回答1:


I guess you've missed to specify which event you want to trigger the ajax update:

<f:ajax event="keyup" ... />


来源:https://stackoverflow.com/questions/4900587/fajax-listener-never-fired

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!