Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-176

JSF Page with a WindowScoped Bean cannot be accessed directly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 0.9.4
    • None
    • Core
    • None
    • Tested on Ubuntu Linux and Mac OSX, JBoss 6 Final, JEE6

    Description

      I have a Facelets-page with a WIndow-Scoped Bean and I just want to access a list.
      The List gets loaded via :

      <f:metadata>
      <f:event type="javax.faces.event.PreRenderViewEvent" listener="#

      {listBean.preRenderView}

      " />
      </f:metadata>

      This just reloads the List every time the page gets rendered. The problem with using this approach is, if I access the page directly, I get the following error:
      "WELD-001303 No active contexts for scope type org.apache.myfaces.extensions.cdi.core.api.scope.conversation.WindowScoped".
      If I do navigate to the page i.e using a commandLink, everything works fine.
      If you do need more information, please just ask.

      Attachments

        1. EXTCDI-176.patch
          4 kB
          Gerhard Petracek

        Activity

          People

            Unassigned Unassigned
            danielsachse Daniel Sachse
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: