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

numberOfLogicalViews not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 9.0.2.Final
    • JSF
    • 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).
    • Compatibility/Configuration, User Experience
    • Workaround Exists
    • Hide

      My workaround was use @ViewScoped from Omnifaces

      Show
      My workaround was use @ViewScoped from Omnifaces
    • 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

      Attachments

        Activity

          People

            fjuma1@redhat.com Farah Juma
            gvieira.dot Gabriel Vieira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: