问题
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