Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13093

EPVC: ViewState must be written even for transient (stateless) views

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.3.2
    • Fix Version/s: 5.0.0.Alpha3
    • Component/s: core
    • Labels:
    • Environment:

      GlassFish 3.1.2.2 with Mojarra 2.1.23

    • Sprint:
      5.0.0.Alpha3 - Sprint 1
    • Steps to Reproduce:
      Hide

      Just place a rich:extendedDataTable in an xhtml file with <f:view transient="true"/> and a request scoped backing bean, then resize or reorder columns.

      Show
      Just place a rich:extendedDataTable in an xhtml file with <f:view transient="true"/> and a request scoped backing bean, then resize or reorder columns.

      Description

      Original summary: extendedDataTable column resizing and reordering not working on transient (stateless) views

      When turning on transient (stateless) views in recent Mojarra versions (as per JSF 2.2 specification, to my best understanding), using request scoped backing beans, javax.faces.ViewState becomes the constant "stateless". Column resizing and reordering in extendedDataTable causes an Ajax request to the server, but in this case an invalid response is sent, containing only:

      <?xml version='1.0' encoding='UTF-8'?>
      <partial-response></partial-response>
      

      This causes an exception in jsf.js because the partial-response element has no children and no further JavaScript processing happens in the view until the page is reloaded. In the non-transient view case, I see a change element updating only the ViewState is returned, instead.
      Other features seem to work pretty well in stateless mode, by the way.
      Thanks

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lfryc Lukáš Fryč
                Reporter:
                salvois Salvo Isaja
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified