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

Support for wildcard globbing in property ignoreViewIds of AccessScopeManagerConfiguration bean.

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            clemclem Clemente Biondo

            Dates

              Created:
              Updated:

              Slack

                Issue deployment