[richfaces-issues] [JBoss JIRA] Created: (RF-2492) onComplete tag doesn't work when within a f:facet\h:form combination

Alexander Smirnov (JIRA) jira-events at lists.jboss.org
Wed Mar 12 14:21:58 EDT 2008


onComplete tag doesn't work when within a f:facet\h:form combination
--------------------------------------------------------------------

                 Key: RF-2492
                 URL: http://jira.jboss.com/jira/browse/RF-2492
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.0
            Reporter: Alexander Smirnov
         Assigned To: Alexander Smirnov
             Fix For: 3.2.0


The onComplete tag isn't being executed when the a4j:commandButton or a4j:commandLink

lies within a <f:facet><h:form> structure.

 

Code example.....in this example, the hide modal panel is never called.  I debugged the action and its working fine.

 

    <rich:modalPanel id="editSubProfileWindow"

                         height="500"

                         width="800">

            <f:facet name="header">

                <h:outputText value="#{subProfileMsgs['subscriptionprofile.edit.lightbox.name']}" styleClass="text"/>

            </f:facet>

            <f:facet name="controls">

                <h:form>

                    <a4j:commandLink action="#{subProfileForm.cancel}"

                                     oncomplete="Richfaces.hideModalPanel('editSubProfileWindow')"

                                     value="close"/>

                </h:form>

            </f:facet>

            <a4j:region id="editSubProfileRegion">

                    <a4j:include ajaxRendered="true" id="editSubProfile" viewId="/jsf/subscriptionprofile/editSubProfile.jspx"/>

            </a4j:region>

      </rich:modalPanel>

 

I also noticed again in this instance if I wrap an a4j:region tag around the modalPanel, the onComplete functions properly.

 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list