7
|
1 <?xml version="1.0" encoding="utf-8"?>
|
|
2 <html xmlns="http://www.w3.org/1999/xhtml"
|
|
3 xmlns:h="http://java.sun.com/jsf/html"
|
|
4 xmlns:f="http://java.sun.com/jsf/core"
|
|
5 xmlns:composite="http://java.sun.com/jsf/composite">
|
|
6 <composite:interface>
|
|
7 <composite:attribute name="label" />
|
|
8 <composite:attribute name="value" required="true" />
|
|
9 <composite:attribute name="required" default="false" />
|
|
10 </composite:interface>
|
|
11
|
|
12 <composite:implementation>
|
|
13 <h:outputLabel for="input" value="#{cc.attrs.label}" style="float:left;" />
|
|
14 <h:inputText id="input" value="#{cc.attrs.value}" style="float:left;" required="#{cc.attrs.required}" />
|
|
15 <h:message for="input" id="msg" />
|
|
16 </composite:implementation>
|
|
17 </html>
|