[jboss-user] [JBoss Seam] - Re: Add operation specific pages.xml configuration

wayfarer3130 do-not-reply at jboss.com
Tue May 29 12:21:53 EDT 2007


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>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049429#4049429

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049429



More information about the jboss-user mailing list