2 Replies Latest reply on May 18, 2010 12:39 PM by sergio martin

    How to avoid a4j:support in a4j:commandLink?

    sergio martin Newbie

      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!