javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2763

Programmatically added stylesheet is lost when validation error occur for session-scoped bean.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.19
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Glassfish 3.1.2, Mojarra 2.1.9

      Description

      Test Case is attached.

      The bean itself is session-scoped. The page has a component created programmatically. The component has style sheet component attached.

      Go to http://HOST:8080/jsfres/index.xhtml to load the form. Pay attention to the div border. Click Submit. The form is returned since there is validation error. The div border is different from the first-time since the style sheet created programmatically is not lost.

      If I change bean to RequestScoped, the stylesheet is loaded correctly each time.

      If I change javax.faces.PARTIAL_STATE_SAVING to false, the issue can be repeated like this. 1) load index.xhtml. Click submit. 2) reload index.xhtml again(instead of resubmit).

      If I change state-saving to client, I have the same problem.

      I once observed this kind of issue in another situation(http://forum.primefaces.org/viewtopic.php?f=3&t=27762). In that situation, the stylesheet and script are attached through ResourceDependencies annotation. However, I can not produce a simple test case for that. I am not sure whether they are the same issue or not.

        Activity

        Hide
        jasonzhang2002gmailcom added a comment -

        Do not see a link/button to upload my testcase. Do not need permission to do this?

        Show
        jasonzhang2002gmailcom added a comment - Do not see a link/button to upload my testcase. Do not need permission to do this?
        Hide
        Manfred Riem added a comment -

        Can you send the testcase to issues@javaserverfaces.java.net?

        Show
        Manfred Riem added a comment - Can you send the testcase to issues@javaserverfaces.java.net?
        Hide
        jasonzhang2002gmailcom added a comment -

        Hi, Manfred
        Did you received the testcase sent through email?

        Show
        jasonzhang2002gmailcom added a comment - Hi, Manfred Did you received the testcase sent through email?
        Hide
        jasonzhang2002gmailcom added a comment -

        This can be closed. I should not use component binding for session scoped-bean.

        Show
        jasonzhang2002gmailcom added a comment - This can be closed. I should not use component binding for session scoped-bean.
        Hide
        rogerk added a comment -

        Closed per reporter.

        Show
        rogerk added a comment - Closed per reporter.

          People

          • Assignee:
            rogerk
            Reporter:
            jasonzhang2002gmailcom
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: