1.1 --- a/examples/Common/Dictionary/Resources/words_template.xhtml Mon Oct 03 19:12:41 2005 +0000
1.2 +++ b/examples/Common/Dictionary/Resources/words_template.xhtml Mon Oct 03 19:13:51 2005 +0000
1.3 @@ -13,32 +13,31 @@
1.4
1.5 <div template:element="entry"> <!-- id="{template:this-element()}" template:id="word-node" -->
1.6 <p>
1.7 - Word: <input template:attribute="word" name="{template:this-attribute()}" type="text" value="{$this-value}"
1.8 + Word: <input template:attribute-field="word" name="..." type="text" value="..."
1.9 onkeypress="requestUpdate(
1.10 'matches',
1.11 '{template:this-attribute()}',
1.12 '{template:other-elements(matches)}',
1.13 '{template:other-attributes('word', matches)}',
1.14 '{template:element-path(template:other-elements(matches))}')" />
1.15 - <input name="search={template:this-element()}" type="submit" value="Search" />
1.16 - <input name="remove={template:this-element()}" type="submit" value="Remove" />
1.17 + <input template:selector-field="search" name="..." type="submit" value="Search" />
1.18 + <input template:selector-field="remove" name="..." type="submit" value="Remove" />
1.19 </p>
1.20 - <p>
1.21 + <p id="{template:this-element()}" template:id="matches-node" template:element="matches">
1.22 Matches:
1.23 - <select id="{template:this-element()}" template:id="matches-node" template:element="matches" name="{template:new-attribute('word')}">
1.24 + <select template:multiple-choice-field="-,word" name="...">
1.25 <!-- onchange="requestUpdate(
1.26 'word',
1.27 '{template:new-attribute('word')}',
1.28 '{template:other-elements(..)}',
1.29 '{template:other-attributes('word', ..)}',
1.30 '/words/entry')" -->
1.31 - <option template:element="match-enum" template:expr="@word = ../@word" template:expr-attr="selected"
1.32 - template:value="@word" value="{@word}" />
1.33 + <option template:multiple-choice-value="match-enum,word,selected" value="..." />
1.34 </select>
1.35 </p>
1.36 </div>
1.37 <p>
1.38 - <input name="add={template:this-element()}" type="submit" value="Add item" />
1.39 + <input template:selector-field="add,entry" name="..." type="submit" value="Add item" />
1.40 </p>
1.41
1.42 </form>