6 Replies Latest reply on Jul 16, 2009 6:43 AM by Deb Dutta

    value is not getting updated from modal panel...

    Deb Dutta Novice

      In my application i am opening a rich modal window with some h:input text , and after entering some value i am clicking a a4j:commanButton.
      but in the backing bean i am not getting the value that i have entered.
      Could any body pls help what may be the problem...

      Here is my UI

      <rich:modalPanel id="editPanel" autosized="true" width="450">
       <f:facet name="header">
       <h:outputText value="Edit Table" />
       <f:facet name="controls">
       <h:graphicImage value="/images/cross.png"
       id="closeEditPanel" styleClass="cursorStyle" />
       <rich:componentControl for="editPanel" attachTo="closeEditPanel"
       operation="hide" event="onclick" />
       <h:panelGrid columns="1">
       <a4j:outputPanel id="editInputPanel" ajaxRendered="true">
       <h:panelGrid columns="2">
       <h:outputText value="Field1 :"/>
       <h:inputText value="#{bean.field1}" />
       <h:outputText value="Field2 :" />
       <h:inputText value="#{bean.field2}" />
       <a4j:commandButton value="Edit"
       oncomplete="document.getElementById('PageForm:editPanel').component.hide();" />

      Is there any problem in stucture ..?