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