Uploaded image for project: 'MyFaces Orchestra'
  1. MyFaces Orchestra
  2. ORCHESTRA-54

Support for wildcard globbing in property ignoreViewIds of AccessScopeManagerConfiguration bean.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 1.4
    • None
    • Conversation
    • None

    Description

      Support for wildcard globbing in property ignoreViewIds of AccessScopeManagerConfiguration bean.

      Recently i've faced the same problem discussed in this thread:
      http://www.mail-archive.com/users@myfaces.apache.org/msg47621.html

      When a Richfaces custom resource (like for example a xcss style sheet)
      is rendered it runs a complete JSF lifecycle, including all
      the post-render phase listeners.
      This invalidates all the "access" scope conversations in the current
      conversation context.

      AccessScopeManagerConfiguration provides a property named ignoreViewIds
      that allows to ignore specific view names. However this property supports
      only fixed view names.

      I've provided a patch to add support for wildcard globbing, so Orchestra's AccessScopeManagerConfiguration class can
      be configured in spring to ignore richfaces custom resources with the following code:
      <bean
      name="org.apache.myfaces.orchestra.conversation.AccessScopeManagerConfiguration"
      class="org.apache.myfaces.orchestra.conversation.AccessScopeManagerConfiguration"
      scope="singleton">
      <property name="ignoreViewIds">
      <set>
      <value>.xcss</value>
      </set>
      </property>
      </bean>

      Attachments

        1. ORCHESTRA54.patch
          3 kB
          Clemente Biondo

        Activity

          People

            Unassigned Unassigned
            clemclem Clemente Biondo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: