]> err.no Git - sope/blob - sopex/Samples/WOxExtTest/ValidatedField.wox
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1201 e4a50df8-12e2-0310-a44c...
[sope] / sopex / Samples / WOxExtTest / ValidatedField.wox
1 <?xml version='1.0' standalone='yes'?>
2 <var:component className="Frame" title="name"
3   xmlns="http://www.w3.org/1999/xhtml"
4   xmlns:var="http://www.skyrix.com/od/binding"
5   xmlns:const="http://www.skyrix.com/od/constant"
6 >
7   <form name="validateForm" var:action="self">
8     <table border="0">
9       <tr>
10         <td align="right">input is required:</td>
11         <td>
12           <var:js-validated-field
13                 inputText="inputIsRequiredText"
14                 const:fieldSize="50" const:inputIsRequired="YES"
15                 const:formName="validateForm"
16                 const:errorMessage=
17                   "Please fill out the 'input is required' - textfield"/>
18         </td>
19       </tr>
20       <tr>
21         <td align="right">text is required:</td>
22         <td>
23           <var:js-validated-field
24                 inputText          = "textIsRequiredText"
25                 const:fieldSize    = "50"
26                 const:requiredText = "500$"
27                 const:formName     = "validateForm"
28                 const:errorMessage=
29                 "The 'text is required' - textfield doesn't contain '500$'"/>
30         </td>
31       </tr>
32       <tr>
33         <td colspan="2">
34           <input type="submit" var:action="self" value="apply"/>
35         </td>
36       </tr>
37     </table>
38
39   </form>
40
41 </var:component>