Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: v3.0.1
    • Fix Version/s: None
    • Component/s: jsf
    • Labels:
      None
    • Environment:

      jdk 1.6.20 ,glassfish V3, windows xp, jsf 2.0

      Description

      I am using view level resource bundle.

      <f:loadBundle var="msg" basename="MyMessages"/>

      and I have MyMessages.properties file in classpath directly.

      For testing purpose I modify properties file [externally]I have a button that will reload the resource bundle by calling

      public String reloadMyBundle() {
      try

      { ResourceBundle.getBundle("MyMessages").clearCache(); ResourceBundle.getBundle("MyMessages").clearCache(Thread.currentThread().getContextClassLoader());//I am not sure which one exactly to use so added all possibilities for testing :p ResourceBundle.clearCache(); ResourceBundle.clearCache(Thread.currentThread().getContextClassLoader()); }

      catch (Exception ex)

      { ex.printStackTrace(); }

      return null;
      }

      But it ResourceBundle isn't getting refreshed.
      It works with other server.

        Issue Links

          Activity

          Hide
          jigar.m.joshi added a comment -

          This isn't particularly related to JSF I think, And Can I have temporary fix to this issue or anything that can help.

          Show
          jigar.m.joshi added a comment - This isn't particularly related to JSF I think, And Can I have temporary fix to this issue or anything that can help.
          Hide
          mayankmodi added a comment -

          Any updates on this issue!

          Show
          mayankmodi added a comment - Any updates on this issue!
          Hide
          just4look added a comment -

          There are another case for the similar bug.

          When updating the locale of FacesContext, the ResourceBundle configured in faces-config.xml wouldn't update.

          Show
          just4look added a comment - There are another case for the similar bug. When updating the locale of FacesContext, the ResourceBundle configured in faces-config.xml wouldn't update.
          Hide
          Ed Burns added a comment -

          Attach work estimate.

          Show
          Ed Burns added a comment - Attach work estimate.
          Hide
          Manfred Riem added a comment -

          Closing duplicate, see associated issue for resolution

          Show
          Manfred Riem added a comment - Closing duplicate, see associated issue for resolution
          Hide
          Manfred Riem added a comment -

          Can you verify if this is still a problem on the latest 2.1 release?

          Show
          Manfred Riem added a comment - Can you verify if this is still a problem on the latest 2.1 release?
          Hide
          mayankmodi added a comment -

          This issue still persist in Glassfish-3.1.2.2. Is there any patch available?

          Show
          mayankmodi added a comment - This issue still persist in Glassfish-3.1.2.2. Is there any patch available?

            People

            • Assignee:
              Ed Burns
              Reporter:
              jigar.m.joshi
            • Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 3 days
                3d
                Logged:
                Time Spent - Not Specified
                Not Specified