1.1 --- a/examples/Common/VerySimple/Resources/structure_multivalue_template.xhtml Thu Jul 21 23:53:29 2005 +0000
1.2 +++ b/examples/Common/VerySimple/Resources/structure_multivalue_template.xhtml Thu Jul 21 23:54:31 2005 +0000
1.3 @@ -5,6 +5,8 @@
1.4 xmlns:template="http://www.boddie.org.uk/ns/xmltools/template">
1.5 <head>
1.6 <title>Example</title>
1.7 + <script type="text/javascript" src="scripts/sarissa.js"> </script>
1.8 + <script type="text/javascript" src="scripts/XSLForms.js"> </script>
1.9 </head>
1.10 <body template:element="structure">
1.11 <form action="" method="POST">
1.12 @@ -18,16 +20,20 @@
1.13 </p>
1.14 <p>
1.15 Item type:
1.16 - <select template:element="type" name="{template:list-attribute('type-enum', 'value')}" multiple="multiple">
1.17 + <select template:element="type" name="{template:list-attribute('type-enum', 'value')}" multiple="multiple"
1.18 + onchange="requestUpdate('{$application-url}comments', '{template:list-attribute('type-enum', 'value')}',
1.19 + '{template:other-elements(../options)}', '{template:other-attributes('value', ../options/comment)}',
1.20 + '/structure/item/options')">
1.21 <option template:element="type-enum" template:expr="@value-is-set" template:expr-attr="selected"
1.22 template:value="@value" value="{@value}" />
1.23 </select>
1.24 </p>
1.25 - <p template:element="comment" template:id="comment-node" id="{template:this-element()}">
1.26 - Comment:
1.27 - <textarea template:attribute="value" name="{template:this-attribute()}" cols="40" rows="3">
1.28 - <span template:value="$this-value" template:effect="replace">Some comment</span>
1.29 - </textarea>
1.30 + <p template:element="options" template:id="comment-node" id="{template:this-element()}">
1.31 + <span template:element="comment">Comment:
1.32 + <textarea template:attribute="value" name="{template:this-attribute()}" cols="40" rows="3">
1.33 + <span template:value="$this-value" template:effect="replace">Some comment</span>
1.34 + </textarea>
1.35 + </span>
1.36 </p>
1.37 <p>
1.38 Itself containing more items: