Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1520

SWF JSF2 Bound UI Components loosing state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for Feedback
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: JSF

      Description

      When using a UI component value binding such as

      <h:inputText binding="#{facesRequestScopedBean.component}" />

      the state is lost when a validation error occurs for another input on the same form.

      Note we are using a JSF managed request scoped bean as the component tree can't be serialised and stored in a flow bean. Even though the bean is request scoped, SWF is creating new instances within the lifecycle of a single request.

      This could be related to JsfView.getUserEventState() returning null instead of the ViewRoot when JSF2 is in use.

      This could be considered a limitation of combining SWF with JSF2 rather than a bug but I haven't come across any mention of this problem on the forums or Jira.

        Attachments

          Activity

            People

            Assignee:
            pwebb Phil Webb
            Reporter:
            dgashby Dean Ashby
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: