[richfaces-issues] [JBoss JIRA] Created: (RF-8499) reRender of richpanel with h:form kills the form
Martin Frey (JIRA)
jira-events at lists.jboss.org
Tue Mar 9 06:43:58 EST 2010
reRender of richpanel with h:form kills the form
------------------------------------------------
Key: RF-8499
URL: https://jira.jboss.org/jira/browse/RF-8499
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.3.2.SR1
Reporter: Martin Frey
If you have a <rich:panel> which includes a <h:form> element the reference in the "document.forms" in Javascript is lost if something calls reRender for this panel. The form stops working after reRender because document.forms contains an undefined entry instead of the newly rendered form.
Here's a samplecode that shows the problem:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:form>
<h:commandLink action="#{bean.someAction}" value="Action" />
</h:form>
<a:form>
<a:commandLink value="refresh" reRender="panel1" />
</a:form>
<rich:panel styleClass="panel" id="panel1">
<f:facet name="header">Panel</f:facet>
<h:form>
<h:commandLink action="#{bean.someAction}" value="Action" />
</h:form>
<a:form>
<a:commandLink action="#{bean.someAction}" value="Action" />
</a:form>
</rich:panel>
</ui:composition>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list