agtemplateweb/target/agtemplate-1.0.0/resources/framework/inputText.xhtml

37 lines
1.8 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:fw="http://xmlns.jcp.org/jsf/composite/framework"
xmlns:composite = "http://java.sun.com/jsf/composite">
<composite:interface>
<composite:attribute default="inputText" name = "styleClass" type="java.lang.String" />
<composite:attribute name="label" type="java.lang.String" required="true" />
<composite:attribute default="false" name = "required" type="java.lang.Boolean" />
<composite:attribute default="50" name = "size" type="java.lang.Integer" />
<composite:attribute name="maxlength" type="java.lang.Integer" required="true" />
<composite:attribute name="value" required="true" type="java.lang.Object" />
<composite:attribute name="idInput" type="java.lang.String" required="true" />
</composite:interface>
<composite:implementation>
<fw:panelGroup rendered="#{cc.rendered}" label="#{cc.attrs.label}" idInput="#{cc.attrs.idInput}" required="#{cc.attrs.required}" >
<p:inputText id="#{cc.attrs.idInput}" value="#{cc.attrs.value}"
required="#{cc.attrs.required}"
requiredMessage="#{cc.attrs.label} requerido(a)."
size="#{cc.attrs.size}" maxlength="#{cc.attrs.maxlength}"
styleClass="inputText" />
</fw:panelGroup>
</composite:implementation>
</html>