Hello,
I wrote a composite component which renders a label, an input text field with Ajax validations.
I am using it like this:
[i]<my:text value="#{components.age}" required="true" >
<f:validateDoubleRange for="input" minimum="5" maximum="99"/>
</my:text>
[/i]
The component works but I find the following error messages in the log file.
21:07:47,636 FATAL meta:97 - /composites.xhtml @18,66 for="input" Unhandled by MetaTagHandler for type javax.faces.validator.DoubleRangeValidator
If I remove the for, I get the error message:
validator tags nested within composite components must have a non-null "for" attribute
Do you have any idea?
Best Regards
Sebastian Hennebrueder
http://www.laliluna.de
the component:
<!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:f="
http://java.sun.com/jsf/core"
xmlns:composite="
http://java.sun.com/jsf/composite">
<head>
<title>This will not be present in rendered output</title>
</head>
<body>
<composite:interface>
<composite:attribute name="label" required="true"/>
<composite:attribute name="value" required="true"/>
<composite:attribute name="required" required="false"/>
<composite:editableValueHolder name="input"/>
</composite:interface>
<composite:implementation>
<h:outputLabel value="#{cc.attrs.label}"/>
<h:inputText id="input" value="#{cc.attrs.value}" required="#{cc.attrs.required}">
<f:ajax execute="input" event="blur" render="input-error"/>
<composite:insertChildren/>
</h:inputText>
<h:messages id="input-error" for="input"/>
</composite:implementation>
</body>
</html>
[Message sent by forum member 'laliluna' (i_at_laliluna.de)]
http://forums.java.net/jive/thread.jspa?messageID=368130