[
https://jira.jboss.org/jira/browse/RF-8499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12518976#action_12518976
]
Alexander Smirnov commented on RF-8499:
---------------------------------------
Yes, this is a well known problem, In some browsers documents.forms collection
does not updated on DOM changes.
The a4j:form is a workaround that has been invented the most for such case.
> 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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues