Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4318

[docs] c:forEach problem with client side state saving

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.12, 2.3.6
    • None
    • None
    • None

    Description

      There appears to be a problem with c:forEach when client side state saving is enabled -  component states are not restored correctly after a submit.  For example, the text entered into this inputText is lost:

      <c:forEach var="current" items="#{list.items}">
      <h:inputText value="#{current.value}"/>
      <h:commandButton value="submit"/>
      </c:forEach>
       
      This example works (the inputText is not lost) with server side state saving enabled, and it also works on Mojarra with client side state saving. I haven't figured out what exactly is causing this behavior yet - if anyone else has insight in this area I'd appreciate hints.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            wtlucy Bill Lucy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m

                Slack

                  Issue deployment