dev@jsftemplating.java.net

[Issue 25] New - provide a viewhandler mapping similar to facelets VIEW_MAPPINGS

From: <ioss_at_dev.java.net>
Date: 26 Jun 2007 21:32:59 -0000

provide a viewhandler mapping similar to facelets VIEW_MAPPINGS:
https://jsftemplating.dev.java.net/issues/show_bug.cgi?id=25
                 Issue #|25
                 Summary|provide a viewhandler mapping similar to facelets VIEW
                        |_MAPPINGS
               Component|jsftemplating
                 Version|1.2beta
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P5
            Subcomponent|Core
             Assigned to|ioss
             Reported by|ioss






------- Additional comments from ioss_at_dev.java.net Tue Jun 26 21:32:58 +0000 2007 -------
Introduce a configuration option similar to Facelets: "facelets.VIEW_MAPPINGS" in JSFTemplating.

Description from the Facelets docs:

"A semicolon (;) delimited list of resources that Facelets should use.
If no resource paths are specified, Facelets will handle all requests (DEFAULT).
If one or more paths are specified, Facelets will only use the ones specified,
otherwise fall back on the parent or default ViewHandler (JSP)."


to keep things somewhat "consistent" i would propose:

 * context-param > param-name: com.sun.jsftemplating.VIEW_MAPPINGS
 * allow simple *.suffix and /prefix/* mappings
 * additionally allow "mixed" mappings: /prefix/*/infix/*.suffix

Implementing this would allow us to bypass JSFTemplating in a user-configurable way and before the
LayoutDefinitionManagers try to decide if the requested resource is an acceptable template.