Tapestry页面属性持久化策略

tapestry.persist.xml

  <contribution configuration-id="PersistenceStrategy">
    <strategy name="session" object="service:SessionPropertyPersistenceStrategy"/>
    <strategy name="client" object="service:PageClientPropertyPersistenceStrategy"/>
    <strategy name="client:page" object="service:PageClientPropertyPersistenceStrategy"/>
    <strategy name="client:app" object="service:AppClientPropertyPersistenceStrategy"/>
  </contribution>

使用方法:
<page-specification>
   <property name="theme" persist="client"/>
</page-specification>

你可能感兴趣的:(xml,tapestry)