2 Replies Latest reply on May 29, 2012 2:03 AM by Lu Han

    RF4 M5 : ajax datas not posted from a popupPanel

    Didier Schonne Newbie

      Hi,

       

      Following this topic (http://community.jboss.org/message/585402#585402) I replaced my form by an a4j:region, but my datas are not posted to the related backing bean property.

       

      Here is the code of a part of my page :

       

      <rich:popupPanel id="pjPanel" width="369" moveable="true">
        <a4j:region>
          <div>
              Information 1 :
              <span class="donnes_small_regular" style="float:right;">
                  <h:inputText value="#{InfoServlet.infoDTO.info}" id="info1" />
              </span>
          </div>
          <div>
              Information 2 :
              <span class="donnes_small_regular" style="float:right;">
                  <h:outputText value="#{InfoServlet.infoDTO.info2}" id="info2">
                     <f:convertDateTime pattern="dd/MM/yyyy" type="date" />
                  </h:outputText>
              </span>
          </div>
          <div>
              Information 3 :
              <span class="donnes_small_regular" style="float:right;">
                     <h:selectOneMenu value="#{InfoServlet.infoDTO.info3}">
                         <f:selectItems value="#{SpecServlet.specInfos}" />
                     </h:selectOneMenu>
              </span>
          </div>
          <div class="submit">
              <a4j:commandLink action="#{InfoServlet.saveInfoDTO}" render="autreChose" execute="@region">
                  <h:graphicImage value="/images/icone_valider.png" />
              </a4j:commandLink>
          </div>
        </a4j:region>
      </rich:popupPanel>
      

       

      In my backing bean I have a null value for info2 and info1 is unchanged.

       

      I tried many things like changing the execute="@region" by execute="@this info2 info3", switching the a4j:region and rich:popupPanel tags, removing the a4j:region. Nothing to do.

      But it works if I don't use a rich:popupPanel.

       

      Did I miss something or there is a bug ?

       

      Thank you in advance for your help.