Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5917

numberOfLogicalViews not working

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 9.0.2.Final
    • Fix Version/s: None
    • Component/s: JSF
    • Labels:
    • Steps to Reproduce:
      Hide

      1-Create a WEB project
      2-Create a @ViewScoped and log @PostConstruct and @PreDestroy.
      3-Set com.sun.faces.numberOfLogicalViews to 3 (or any other number) on web.xml.
      4-Create a page that call the View created (Step 2).
      5-You will notice that it will store view ultil max 25 (LRU map).

      Show
      1-Create a WEB project 2-Create a @ViewScoped and log @PostConstruct and @PreDestroy. 3-Set com.sun.faces.numberOfLogicalViews to 3 (or any other number) on web.xml. 4-Create a page that call the View created (Step 2). 5-You will notice that it will store view ultil max 25 (LRU map).
    • Affects:
      Compatibility/Configuration, User Experience
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      My workaround was use @ViewScoped from Omnifaces

      Show
      My workaround was use @ViewScoped from Omnifaces
    • Estimated Difficulty:
      Low

      Description

      Theres a bug in wildfly 9 Final
      Even if a set on web.xml

      <context-param>
              <param-name>com.sun.faces.numberOfLogicalViews</param-name>
              <param-value>3</param-value>
      </context-param>
      

      It keep storing 25 views.
      I tried @Named (CDI) and @ManagedBean and the problem persisted.
      My workaround was use @ViewScoped from Omnifaces

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                fjuma Farah Juma
                Reporter:
                gvieira.dot Gabriel Vieira
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: