• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to avoid a4j:support in a4j:commandLink?

 
sergio martin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody.


Someone told me that I don´t need a4j:support inside a a4j:commandLink because support is already included in commandLink. The thing is that i´m new to richfaces, and I don´t know how to include in the commandLink the support that I actually have in my code (see below) .


<a4j:commandLink reRender="results-view" action="#{actionsContainer.userManagementActions.loadUser}" title="Edit" styleClass="edit">
<f:param name="userName" value="john"/>
<h:outputText value="Edit" /> <small>Edit user<b></b></small>
<a4j:support event="onclick">
<f:setPropertyActionListener value="../user-mng/users-edit.xhtml" target="#{layout.displayAs}" />
</a4j:support>
</a4j:commandLink>


Thanks in advance for your help!
 
Tim Holloway
Saloon Keeper
Posts: 18302
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need the a4:support because you can just use the "onclick" on the a4j:commandLink.

However, you're overloading a lot of glop onto that one command link. What are you actually trying to accomplish that would require such a baroque construct?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic