01.
<?xml version=
"1.0"
encoding=
"UTF-8"
?>
08.
>
09.
<f:view contentType=
"text/html"
>
10.
<h:head>
11.
<f:facet name=
"first"
>
12.
<meta content=
'text/html; charset=UTF-8'
http-equiv=
"Content-Type"
/>
13.
<title>#{msg[
'application.title'
]}</title>
14.
</f:facet>
15.
</h:head>
16.
<h:body>
17.
18.
<h:form id=
"a"
name=
"a"
>
19.
<h:form id=
"b"
name=
"b"
>
20.
<table>
21.
<tr>
22.
<td>
23.
<p:inputText name=
"txt0"
required=
"true"
label=
"House number"
id=
"txt0"
onkeyup=
"javaScript:if(this.value){document.getElenentById('a:b:txt1').disabled=true;}"
/>
24.
<p:inputText name=
"txt1"
required=
"true"
label=
"House number2"
id=
"txt1"
onkeyup=
"javaScript:if(this.value){document.getElementById('a:b:txt0').disabled=true;}"
/>
25.
</td>
26.
</tr>
27.
28.
</table>
29.
30.
</h:form>
31.
</h:form>
32.
</h:body>
33.
</f:view>
34.
</html>