You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by William Lucy <wt...@us.ibm.com> on 2015/04/28 17:14:45 UTC

Packaging Flows in Directories Convention


I'm a bit unsure about the validity of a particular flow packaging
convention.  Consider that we have a flow defined with the following
structure:
/WEB-INF/flowname/flowname-flow.xml
/flowname/flowname.xhtml
/flowname/flowname-2.xhtml
/flowname/<etc.>

Assuming that no start node is specified in flowname-flow.xml, is this a
valid configuration?  Currently, MyFaces does not find a start node at all,
since it looks for it at /WEB-INF/flowname/flowname.xhtml.  Mojarra does
parse this configuration without error.

The relevant spec is JSF 2.2 11.4.3.3 (Packaging Flows in Directories);
there it says:
"The following conventions apply to flows defined in this manner. Any flow
definition in the corresponding -flow.xml
file will override any of the conventions in the case of a conflict.
Every vdl file in that directory is a view node of that flow.
The start node of the flow is the view whose name is the same as the name
of the flow.
..."

Note the ambiguity here - "Every vdl file in that directory" - which
directory?  Should MyFaces work with this flow configuration?

Thanks,
Bill Lucy