Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3075

Allow ELResolvers filtering

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.5-SNAPSHOT
    • 2.1.0
    • General
    • None
    • myfaces trunk

    Description

      related to topic
      http://www.mail-archive.com/dev@myfaces.apache.org/msg49177.html

      Problem:
      how to disable ELResolver smartly? Adding a context-param for each is an
      overkill.

      But we have https://cwiki.apache.org/MYFACES/elresolver-ordering.html in
      codebase already. I propose to add new feature "ELResolver filtering"
      and new context-param:

      <context-param>
      <param-name>org.apache.myfaces.EL_RESOLVER_PREDICATE</param-name>
      <param-value>org.foo.bazz.ELResolverPredicate</param-value>
      </context-param>

      Filter is simple instance of org.apache.commons.collections.Predicate.

      For application where no ManagedBean(Resolver) is used or no Flash, user
      can simply return false from Predicate.evaluate and ELResolver won't be
      installed.

      See mail thread here: http://www.mail-archive.com/dev@myfaces.apache.org/msg52082.html

      Attachments

        1. MYFACES-3075.patch
          9 kB
          Martin Kočí
        2. MYFACES-3075-v1.patch
          9 kB
          Martin Kočí

        Activity

          People

            markoc50 Martin Kočí
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: