1 Reply Latest reply on Mar 28, 2012 4:09 PM by pdhung3012

    a4j:commandButton in rich:popupPanel not submitting input


      I think this is the same problem described here https://community.jboss.org/message/566382 and here https://issues.jboss.org/browse/RF-9529 . A workaround was identified, but I was wondering if any more information has come to light since these were created that actually solves this problem.


      I am using Richfaces 4.2.0.Final.




      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"

          <title>RichFaces Application</title>
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


          <a4j:commandButton execute="@this" render="editPanel"
            oncomplete="#{rich:component('editPanel')}.show()" value="Edit">

          <rich:popupPanel id="editPanel">
            <h:panelGrid columns="2">
              <h:outputText value="test string" />
              <h:inputText id="innm21" value="#{testClass.testString}" />

            <a4j:commandButton value="Save" action="#{testClass.fireAction}"
              render="list newcontact" execute="editPanel" />
            <a4j:commandButton value="Cancel"
              onclick="#{rich:component('editPanel')}.hide(); return false;" />



      managed bean is here

      public class TestClass {
          String testString;

          public String getTestString() {
              return testString;

          public void setTestString(String testString) {
              this.testString = testString;
          public String fireAction(){
              System.out.println("here is the testString: "+testString);
              return "done";


      When I click "Save" I get this output

      09:43:24,999 INFO  [stdout] (http-- here is the testString: null

      setTestString is never called

      Has anyone figured out how to fix this by now?