[
http://jira.jboss.com/jira/browse/RF-2492?page=all ]
Ilya Shaikovsky resolved RF-2492.
---------------------------------
Resolution: Done
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: Ilya Shaikovsky
Priority: Critical
Fix For: 3.2.1
Attachments: demo_mod.zip
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