This content has been marked as final.
Show 4 replies
-
1. Re: Richfaces 4 a:commandLink does not invoke bean method with a4j ajax click event.
yyq2009 Jun 8, 2012 2:40 AM (in response to rmutha)Hi, just use action attribute of a4j:commandLink, it is already ajax component, <a4j:ajax/> is use to add ajax to non-ajax component, eg. h:commandButton,h:selectOneMenu...
<a4j:commandLink value="#{messages['detail.encounters.addToRecordList']}" action="#{bean.addEncounterToRecordList(encounter)}" render="tab1,tab2,tab3">
</a4j:commandLink>
-
2. Re: Richfaces 4 a:commandLink does not invoke bean method with a4j ajax click event.
healeyb Jun 8, 2012 6:08 AM (in response to yyq2009)<a4j:ajax> doesn't have an action= attribute, only a listener=.
-
3. Re: Richfaces 4 a:commandLink does not invoke bean method with a4j ajax click event.
jpapouse Jun 11, 2012 3:48 AM (in response to healeyb)Brendan, as Daniel said - it's useless to use a4j:ajax for click event when the a4j:commandButton has @action attribute.
-
4. Re: Richfaces 4 a:commandLink does not invoke bean method with a4j ajax click event.
healeyb Jun 11, 2012 5:22 AM (in response to jpapouse)> Brendan, as Daniel said - it's useless to use a4j:ajax for click event when the a4j:commandButton has @action attribute.
I've been using this stuff for years Jan.