[
https://issues.apache.org/jira/browse/MYFACES-4661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17837765#comment-17837765
]
Thomas Andraschko commented on MYFACES-4661:
--------------------------------------------
is it the same with current 4.0 SNAPSHOT?
i think it should actually just fail with "not found exception" as ":subview1"
just doesnt exist, its ":form:subview1"
> SearchExpressions: Infinite Loop with SubView
> ---------------------------------------------
>
> Key: MYFACES-4661
> URL: https://issues.apache.org/jira/browse/MYFACES-4661
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.3.10, 3.0.2, 2.3-next-M8, 4.0.2, 4.1.0-RC1
> Reporter: Melloware
> Priority: Major
> Attachments: subview.zip
>
>
> Attached is reproducible example using only core JSF code.
> [^subview.zip]
>
> {code:java}
> <h:form id="frmTest">
> <f:subview id="subview1">
> <!-- Components within the first subview -->
> <h:outputText value="This is subview 1" />
> <h:inputText id="txtString" value="#{testView.string}" />
> </f:subview>
> <p></p>
> <f:subview id="subview2">
> <!-- Components within the second subview -->
> <h:outputText value="This is subview 2" />
> <h:inputText value="#{testView.integer}" />
> </f:subview> <p></p>
> <h:commandButton value="Submit (Error Response Committed)">
> <f:ajax render=":subview1:txtString" event="click" ></f:ajax>
> </h:commandButton>
> <h:commandButton value="Submit (Works)">
> <f:ajax render="subview1:txtString" event="click" ></f:ajax>
> </h:commandButton>
> </h:form> {code}
> ^The subview `render=":subview1:txtString"` gets stuck an infinite loop while
> `render="subview1:txtString"` works fine.^
> ^The request for the failed infinite loop...^
> {code:java}
> javax.faces.partial.render"j_id__v_0" {code}
> ^Running this same code with Mojarra 2.3 using `mvn clean jetty:run
> -Pmojarra23` the button works fine and the request looks like...^
> ^^
> {code:java}
> javax.faces.partial.render"frmTest:subview1:txtString" {code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)