7.8. Fine-grained files for defining navigation, page actions and parameters
If you have a large number of different page actions and parameters — or even just a large number of navigation rules — it is sensible to split the declarations into several smaller files. You can define actions and parameters for a page with the view ID
/calc/calculator.jsp
in a resource named calc/calculator.page.xml
. In this case, <page>
is the root element, and the view ID is implied:
<page action="#{calculator.calculate}"> <param name="x" value="#{calculator.lhs}"/> <param name="y" value="#{calculator.rhs}"/> <param name="op" converter="#{operatorConverter}" value="#{calculator.op}"/> </page>