This content has been marked as final.
Show 1 reply
-
1. Re: Add operation specific pages.xml configuration
wayfarer3130 May 29, 2007 12:21 PM (in response to wayfarer3130)Adding support for sub-operations also would allow better support for cache control, where the sub-operation might over-ride the parent's cache control, that is, the document might be cached by default for 9 seconds, by not at all for get operations with an op provided (this probably isn't realistic for this example, but for something like an editor or the like, it is very nice to have reasonable cache control built in.)
<pages> <page view-id="/calculator.jsp" action="#{calculator.calculate}"> <cache expires="9" /> <param name="x" value="#{calculator.lhs}"/> <param name="y" value="#{calculator.rhs}"/> <param name="op" converter="#{operatorConverter}" value="#{calculator.op}"/> <view-modifier value="#{calculator.op}" /> </page> <page view-id="/calculator.jsp" view-modifier="+" action="#{calculator.add}"> <cache expires="0" /> </page> <page view-id="/calculator.jsp" view-modifier="?:"> <cache expires="0" /> <param name="z" value="#{trivalued.z}" /> </page> </pages>