1 Reply Latest reply on Jun 25, 2012 4:59 AM by segu

    Action and setPropertyActionListener in commandButton/Link

    segu

      Hello,

       

      First of all I am using Jboss 6.1, JSF 2 and Richfaces 4.2.

      In a xhtml page I call a popup to edit or add users.

      When I save modifications the popup close well and the users list is updated, but when I click immediately after on the commandButton to add a new user, action and setPropertyActionListener are not performed so the popup appears with the previous user data. The same problem occurs if i click on the edit commandlink.

      Action and setPropertyActionListener are correctly performed if I did not save modification in the popup.

       

      Code in attachment. commandButton is lines 383-390 and commandlink 362-370.

       

      I do not understand why action and setPropertyActionListener are not always performed (or never).

       

      Thx for your help

        • 1. Re: Action and setPropertyActionListener in commandButton/Link
          segu

          Some precision:

           

          I am quite sure it is a form/render problem, but I can not solve it.

          Here is my xhtml file body structure:

           

          <rich:popupPanel>

               <h:form>

                    <rich:panel>

                          <a4j:region>

                              <table/> with output/input data

                              <a4j:commandButton/> save button (for new user or edit)

                          </a4j:region>

                    </rich:panel>

               </h:form>

          </rich:popupPanel>

           

          <h:form>

               <rich:tabPanel>
                    <rich:tab>

                          <a4j:region>

                              <rich:dataTable>

                                   <a4j:commandLink> edit an user (call the popup above)

                              <rich:dataTable>

                                   <a4j:commandButton/> add an user (call the popup above)

                          </a4j:region>

                    </rich:tab> 

                    <rich:tab/>

               </rich:tabPanel>

          </h:form>

           

          I have to modify the structure of my xhtml file or modify commandButton/Link render, but I did not find how.

          If someone have an idea.

           

          Thx for your help.