aspose file tools*
The moose likes JSF and the fly likes How to avoid a4j:support in a4j:commandLink? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to avoid a4j:support in a4j:commandLink?" Watch "How to avoid a4j:support in a4j:commandLink?" New topic
Author

How to avoid a4j:support in a4j:commandLink?

sergio martin
Greenhorn

Joined: May 17, 2010
Posts: 3
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

Joined: Jun 25, 2001
Posts: 16250
    
  21

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?


Customer surveys are for companies who didn't pay proper attention to begin with.
 
wood burning stoves
 
subject: How to avoid a4j:support in a4j:commandLink?