[
https://issues.apache.org/jira/browse/MYFACES-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18144871#comment-18144871
]
Volodymyr Siedlecki commented on MYFACES-4781:
----------------------------------------------
I think the app was coded wrong and I was looking at it correctly?
Working on 4.1.3 and Fails on 4.1.4:
{code:java}
<ui:repeat id="val" rowStatePreserved="true" value="#{itemsBean.items}"
var="val"> {code}
{code:java}
<h:form id="mainForm"> <h:inputText id="text" value="#{val}"/>{code}
{code:java}
<h:commandButton id="submit" value="submit" action="#{itemsBean.submit}" />
{code}
{code:java}
</h:form> {code}
{code:java}
</ui:repeat>{code}
{color:#808080}
To get it to work, EL need to change to {color}
{code:java}
`<h:inputText id="text" value="#{val.value}"/>`{code}
> rowStatePreserved is lost for ui:repeat
> ---------------------------------------
>
> Key: MYFACES-4781
> URL: https://issues.apache.org/jira/browse/MYFACES-4781
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 4.1.4
> Reporter: Volodymyr Siedlecki
> Assignee: Volodymyr Siedlecki
> Priority: Major
>
> An optimization moved UIInput state into transient storage, but UIRepeat
> fails to save transient state for the last row when switching to rowIndex =
> -1, causing the final row's submittedValue, valid, and localValueSet to be
> lost when rowStatePreserved="true".
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)