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

Find a way to allow c:if work with partial state saving enabled

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-2
    • JSR-314
    • None

    Description

      This one is difficult to solve but I still think it is possible.

      It was explored trying to solve MYFACES-2428, and it seems ri is trying to do something about it too on:

      https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1408

      and

      https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1313

      One strategy to solve this one is this:

      1. Mark the parent component containing c:if to not save it partially.
      2. Do not execute c:if on postback and partial state saving enabled.

      In theory, the parent component should be restored fully from saved state.

      Note that things like:

      <c:if>....
      <p>Some markup</p>
      <c:if>

      is just invalid. It is expected that c:if only contains components with state.

      Attachments

        1. fixPSSIf2009JAN-10.patch
          28 kB
          Leonardo Uribe
        2. fixPSSIf2009JAN-11.patch
          40 kB
          Leonardo Uribe
        3. fixPSSIf2009JAN-14.patch
          44 kB
          Leonardo Uribe
        4. fixPSSIf2009JAN-7.patch
          40 kB
          Leonardo Uribe

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              lu4242 Leonardo Uribe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: