3 Replies Latest reply on Jan 28, 2009 2:26 PM by timber67

    Action method not firing in rich:modalPanel

    timber67 Newbie

      I am new to richfaces. I am creating a page that you can select a row from a rich:extendedDataTable and edit it in a modal panel. I am using the example given in http://www.jboss.com/?module=bb&op=viewtopic&t=120431.

      The action method (action="#{stateAction.delete}") on the commandbutton is not firing. I have verified the button successfully executes the method if the button is outside of the modalPanel.

      Any help would be appreciated.

      <rich:modalPanel id="_panel" label="State Edit" width="315">
       <h:form id="formaa">
       <s:decorate id="stateIdDecoration" template="layout/edit.xhtml">
       <ui:define name="label">stateId</ui:define>
       <h:inputText id="stateId"
       disabled="#{stateAction.stateHome.managed}"
       required="true"
       size="2"
       maxlength="2"
       value="#{stateAction.stateHome.instance.stateId}">
       </h:inputText>
       </s:decorate>
       <h:commandButton id="delete"
       action="#{stateAction.delete}"
       value="Delete"
       onclick="javascript:Richfaces.hideModalPanel('_panel')"
       immediate="true"
       rendered="#{stateAction.stateHome.managed}"/>
       </h:form>
      </rich:modalPanel>


        • 1. Re: Action method not firing in rich:modalPanel
          Ilya Shaikovsky Master

          1) please paste the log output from PhaseTracker.
          2) Check that you have no form outside the panel.

          • 2. Re: Action method not firing in rich:modalPanel
            timber67 Newbie

            Here is everything past where I select the row from the extendedDataTable. It includes the modalPanel displaying and clicking the delete button. I was aware of the form tag issue and there are no form tags around modalPanel. But there is another set of form tags on the page to support selecting a row on the extendedDataTable.



            17:54:03,030 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            17:54:03,030 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            17:54:03,030 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            17:54:03,030 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            17:54:03,031 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE APPLY_REQUEST_VALUES 2
            17:54:03,031 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE APPLY_REQUEST_VALUES 2
            17:54:03,062 INFO [STDOUT] Hibernate:
            select
            state0_.State_ID as State1_0_,
            state0_.Description as Descript2_0_,
            state0_.DescriptionShort as Descript3_0_,
            state0_.Version as Version0_
            from
            scouttracker.state state0_
            17:54:03,062 INFO [STDOUT] Hibernate:
            select
            state0_.State_ID as State1_0_,
            state0_.Description as Descript2_0_,
            state0_.DescriptionShort as Descript3_0_,
            state0_.Version as Version0_
            from
            scouttracker.state state0_
            17:54:03,093 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER APPLY_REQUEST_VALUES 2
            17:54:03,093 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER APPLY_REQUEST_VALUES 2
            17:54:03,093 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE PROCESS_VALIDATIONS 3
            17:54:03,109 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE PROCESS_VALIDATIONS 3
            17:54:03,109 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER PROCESS_VALIDATIONS 3
            17:54:03,109 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER PROCESS_VALIDATIONS 3
            17:54:03,109 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE UPDATE_MODEL_VALUES 4
            17:54:03,109 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE UPDATE_MODEL_VALUES 4
            17:54:03,109 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER UPDATE_MODEL_VALUES 4
            17:54:03,109 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER UPDATE_MODEL_VALUES 4
            17:54:03,109 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE INVOKE_APPLICATION 5
            17:54:03,109 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE INVOKE_APPLICATION 5
            17:54:03,124 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER INVOKE_APPLICATION 5
            17:54:03,140 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER INVOKE_APPLICATION 5
            17:54:03,140 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            17:54:03,140 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            17:54:03,202 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            17:54:03,202 ERROR [STDERR] Jan 26, 2009 5:54:03 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            17:54:04,996 ERROR [STDERR] Jan 26, 2009 5:54:04 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            17:54:04,996 ERROR [STDERR] Jan 26, 2009 5:54:04 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            17:54:05,012 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            17:54:05,012 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            17:54:05,012 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE APPLY_REQUEST_VALUES 2
            17:54:05,012 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE APPLY_REQUEST_VALUES 2
            17:54:05,027 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER APPLY_REQUEST_VALUES 2
            17:54:05,027 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER APPLY_REQUEST_VALUES 2
            17:54:05,027 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE PROCESS_VALIDATIONS 3
            17:54:05,027 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE PROCESS_VALIDATIONS 3
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER PROCESS_VALIDATIONS 3
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER PROCESS_VALIDATIONS 3
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE UPDATE_MODEL_VALUES 4
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE UPDATE_MODEL_VALUES 4
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER UPDATE_MODEL_VALUES 4
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER UPDATE_MODEL_VALUES 4
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE INVOKE_APPLICATION 5
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE INVOKE_APPLICATION 5
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER INVOKE_APPLICATION 5
            17:54:05,028 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER INVOKE_APPLICATION 5
            17:54:05,037 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            17:54:05,037 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            17:54:05,042 INFO [STDOUT] Hibernate:
            select
            state0_.State_ID as State1_0_,
            state0_.Description as Descript2_0_,
            state0_.DescriptionShort as Descript3_0_,
            state0_.Version as Version0_
            from
            scouttracker.state state0_
            17:54:05,047 INFO [STDOUT] Hibernate:
            select
            state0_.State_ID as State1_0_,
            state0_.Description as Descript2_0_,
            state0_.DescriptionShort as Descript3_0_,
            state0_.Version as Version0_
            from
            scouttracker.state state0_
            17:54:05,251 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6
            17:54:05,251 ERROR [STDERR] Jan 26, 2009 5:54:05 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RENDER_RESPONSE 6


            BTW,
            After I upgraded RichFaces (by replacing the jar files) I get the following error messages. I don't think it is related but I thought I give this info as well.

            17:51:54,853 INFO [Contexts] starting up: org.jboss.seam.security.identity
            17:51:55,322 INFO [RuleBase] parsing rules: /security.drl
            17:51:55,852 INFO [Contexts] starting up: org.jboss.seam.web.session
            17:51:55,868 ERROR [STDERR] Jan 26, 2009 5:51:55 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            17:51:55,868 ERROR [STDERR] Jan 26, 2009 5:51:55 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RESTORE_VIEW 1
            17:51:55,900 ERROR [STDERR] Jan 26, 2009 5:51:55 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            17:51:55,915 ERROR [STDERR] Jan 26, 2009 5:51:55 PM org.exadel.jsf.PhaseTracker afterPhase
            INFO: AFTER RESTORE_VIEW 1
            17:51:55,962 ERROR [STDERR] Jan 26, 2009 5:51:55 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            17:51:55,993 ERROR [STDERR] Jan 26, 2009 5:51:55 PM org.exadel.jsf.PhaseTracker beforePhase
            INFO: BEFORE RENDER_RESPONSE 6
            17:51:56,227 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
            17:51:56,227 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
            17:51:56,243 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
            17:51:56,259 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
            17:51:56,274 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
            17:51:56,290 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
            17:51:56,305 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
            17:51:56,305 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
            17:51:56,321 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/a4j.taglib.xml
            17:51:56,321 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/ajax4jsf.taglib.xml
            17:51:56,321 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/jsp.taglib.xml
            17:51:56,383 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/rich.taglib.xml
            17:51:56,383 ERROR [STDERR] Jan 26, 2009 5:51:56 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
            INFO: Added Library from: jar:file:/C:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/ScoutTracker.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar!/META-INF/richfaces.taglib.xml

            • 3. Re: Action method not firing in rich:modalPanel
              timber67 Newbie

              Problem was with the rendered attribute. The AJAX java script in the generated html was not created. Fixed the EL used to populate the rendered attribute and it is now working.