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

    How to avoid a4j:support in a4j:commandLink?

    sergiomartin

      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!

        • 1. Re: How to avoid a4j:support in a4j:commandLink?
          nbelaevski

          Hi,

           

          Here is the code:

           

           

                        <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>
                                  <f:setPropertyActionListener value="../user-mng/users-edit.xhtml" target="#{layout.displayAs}" />
                              </a4j:commandLink>
          
          • 2. Re: How to avoid a4j:support in a4j:commandLink?
            sergiomartin

            So easy!

            jeje it was in front of my eyes :-)

            Thanks a lot!