Skip to content

provide a viewhandler mapping similar to facelets VIEW_MAPPINGS #25

@glassfishrobot

Description

@glassfishrobot

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.

Environment

Operating System: All
Platform: All

Affected Versions

[1.2]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions