28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
<?xml version = "1.0" encoding = "UTF-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns = "http://www.w3.org/1999/xhtml"
|
|
xmlns:h = "http://java.sun.com/jsf/html"
|
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
|
xmlns:f = "http://java.sun.com/jsf/core"
|
|
xmlns:p="http://primefaces.org/ui"
|
|
xmlns:composite = "http://java.sun.com/jsf/composite">
|
|
|
|
<composite:interface>
|
|
<composite:attribute name="label" type="java.lang.String" required="true" />
|
|
<composite:attribute default="false" name = "required" type="java.lang.Boolean" />
|
|
<composite:attribute name="idInput" type="java.lang.String" required="true" />
|
|
</composite:interface>
|
|
|
|
<composite:implementation>
|
|
|
|
<h:panelGroup rendered="#{cc.rendered}" layout="block" id="#{cc.attrs.idInput}Block">
|
|
<h:outputText value="#{cc.attrs.label}:" />
|
|
<h:outputText styleClass="asterisco" value="#{cc.attrs.required ? '*' : ''}" /><br />
|
|
<p:message styleClass="message_form" for="#{cc.attrs.idInput}" /><br />
|
|
<composite:insertChildren/>
|
|
</h:panelGroup>
|
|
|
|
</composite:implementation>
|
|
</html> |