ICEfaces
  1. ICEfaces
  2. ICE-5276

compat showcase get NavigationBean working in Window scope of JSF2

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0.0
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      jsf2.0, ICEfaces2.0 compat
    • Affects:
      Sample App./Tutorial

      Description

      currenlty NavigationBean is in session scope. When changing to View scope, any submit on the example of components (facelet includes) causes view to go to startup view

        Activity

        Hide
        Judy Guglielmin added a comment -

        improve application by using view scope for navigation within the panels/application

        Show
        Judy Guglielmin added a comment - improve application by using view scope for navigation within the panels/application
        Hide
        Ken Fyten added a comment -

        Let's use Window scope instead.

        Show
        Ken Fyten added a comment - Let's use Window scope instead.
        Hide
        Judy Guglielmin added a comment -

        Tried Windows Scope by annotating the NavigationBean with the following:-

        @ManagedBean(name = "WindowScopedCounter")
        @CustomScoped(value = "#

        {window}")

        see the attached screenshot to see that the content-panel is not included at all. If clicking on the collapsible-panels that contain the sub-menus you get the following:-
        @ManagedBean(name = "WindowScopedCounter")
        @CustomScoped(value = "#{window}

        ")

        note that the beans that are in Session scope (style and language) are there and working properly. The view-scoped backing beans are not.
        Will try placing the content backing beans in windows scope as well (they are all currently in view scope).

        Show
        Judy Guglielmin added a comment - Tried Windows Scope by annotating the NavigationBean with the following:- @ManagedBean(name = "WindowScopedCounter") @CustomScoped(value = "# {window}") see the attached screenshot to see that the content-panel is not included at all. If clicking on the collapsible-panels that contain the sub-menus you get the following:- @ManagedBean(name = "WindowScopedCounter") @CustomScoped(value = "#{window} ") note that the beans that are in Session scope (style and language) are there and working properly. The view-scoped backing beans are not. Will try placing the content backing beans in windows scope as well (they are all currently in view scope).
        Hide
        Judy Guglielmin added a comment -

        when NavigationBean is in Windows Scope

        Show
        Judy Guglielmin added a comment - when NavigationBean is in Windows Scope
        Hide
        Judy Guglielmin added a comment -

        when in windows scope (see attached screenshot) and click on any of the collapsible menu's you get the following;_
        Jul 19, 2010 3:31:44 PM com.sun.faces.renderkit.RenderKitUtils renderUnhandledMessages
        INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
        sourceId=navigationMenuForm:extendedCompClpsbl[severity=(ERROR 2), summary=(javax.el.PropertyNotFoundException: /WEB-INF/includes/content/navigation.xhtml @31,114 expanded="#

        {navigation.extendedRender}": Target Unreachable, identifier 'navigation' resolved to null), detail=(javax.el.PropertyNotFoundException: /WEB-INF/includes/content/navigation.xhtml @31,114 expanded="#{navigation.extendedRender}

        ": Target Unreachable, identifier 'navigation' resolved to null)]

        (basically the el resolving "navigation" named bean resolves to 'null')

        Show
        Judy Guglielmin added a comment - when in windows scope (see attached screenshot) and click on any of the collapsible menu's you get the following;_ Jul 19, 2010 3:31:44 PM com.sun.faces.renderkit.RenderKitUtils renderUnhandledMessages INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed. sourceId=navigationMenuForm:extendedCompClpsbl[severity=(ERROR 2), summary=(javax.el.PropertyNotFoundException: /WEB-INF/includes/content/navigation.xhtml @31,114 expanded="# {navigation.extendedRender}": Target Unreachable, identifier 'navigation' resolved to null), detail=(javax.el.PropertyNotFoundException: /WEB-INF/includes/content/navigation.xhtml @31,114 expanded="#{navigation.extendedRender} ": Target Unreachable, identifier 'navigation' resolved to null)] (basically the el resolving "navigation" named bean resolves to 'null')
        Hide
        Judy Guglielmin added a comment -

        Ted said to assign to you. Not sure when Windows scope is supposed to resolve the el in conjunction with facelets composition .

        Show
        Judy Guglielmin added a comment - Ted said to assign to you. Not sure when Windows scope is supposed to resolve the el in conjunction with facelets composition .
        Hide
        Ted Goddard added a comment -

        Please indicate if there is any functional impact.

        Show
        Ted Goddard added a comment - Please indicate if there is any functional impact.
        Hide
        Ken Fyten added a comment -

        This requires the ui:include fix that's included in Mojarra JSF 2.1.

        Show
        Ken Fyten added a comment - This requires the ui:include fix that's included in Mojarra JSF 2.1.
        Hide
        Ken Fyten added a comment -

        Since we are demonstrating Window scope with the ace-showcase and possibly future samples, and we are currently blocked from adopting it for compat-showcase due to the JSF issue (until JSF 2.1, anyway), we won't bother changing the scope being used in compat-showcase. It is currently using Session scope.

        Show
        Ken Fyten added a comment - Since we are demonstrating Window scope with the ace-showcase and possibly future samples, and we are currently blocked from adopting it for compat-showcase due to the JSF issue (until JSF 2.1, anyway), we won't bother changing the scope being used in compat-showcase. It is currently using Session scope.

          People

          • Assignee:
            Unassigned
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: