You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2004/02/03 15:00:04 UTC
[WIKI-UPDATE] Main WoodyXSLT Tue Feb 3 15:00:04 2004
Page: http://wiki.cocoondev.org/Wiki.jsp?page=Main , version: 332 on Tue Feb 3 13:45:44 2004 by Vadim
- ----
- ----
Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyXSLT , version: 5 on Tue Feb 3 14:12:53 2004 by JoergHeinicke
+ For storing the state of a tab or choice selection server-side just add a field to the form definition that shall hold this value:
+
+ {{{
+ <wd:field id="state">
+ <wd:datatype base="integer"/>
+ </wd:field>
+ }}}
+
+ Bind this value to whatever you want. In the form template you need then following code:
+
+ {{{
+ <wi:group>
+ <wi:styling type="choice"/>
+ <wi:state>
+ <wt:widget id="state"/> <!-- refering to the above defined field -->
+ </wi:state>
+ <wi:items>
+ ...
+ </wi:items>
+ </wi:group>
+ }}}
+