]> err.no Git - sope/blob - sope-appserver/NGObjWeb/DynamicElements/WORadioButton.api
started TAL element builder
[sope] / sope-appserver / NGObjWeb / DynamicElements / WORadioButton.api
1 <?xml version="1.0" standalone="yes"?> 
2
3 <wo class="WORadioButton">
4   <binding name="selection" passthrough="NO" settable="YES"/>
5   <binding name="checked" passthrough="NO" settable="YES"/>
6
7   <binding name="name"/>
8   <binding name="value"/>
9   <binding name="disabled" passthrough="NO" defaults="YES/NO"/>
10
11   <binding name="otherTagString" passthrough="NO"/>
12
13   <validation message="exactly one of &apos;checked&apos; or &apos;value&apos; must be bound">
14     <count test="!=1">
15       <bound name="checked"/>
16       <bound name="value"/>
17     </count>
18   </validation>
19
20   <validation message="if either &apos;selection&apos; or &apos;value&apos; is bound, then both must be bound">
21     <and>
22       <or>
23         <bound name="selection"/>
24         <bound name="value"/>
25       </or>
26       <count test="&lt;2">
27         <bound name="selection"/>
28         <bound name="value"/>
29       </count>
30     </and>
31   </validation>
32 </wo>