webtier@glassfish.java.net

Re: [webtier] Composite Component problem - Unhandled by MetaTagHandler for type

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Thu, 15 Oct 2009 13:49:43 -0700

This message can be ignored, but we'll look into correcting it.

  I do need to ask, what's the purpose of the insertChildren reference
nested
within the h:inputText?

If that's to insert the f:validateDoubleRange validator, it's unecessary.
By specifying:

<composite:editableValueHolder name="input"/>

and using the 'for' attribute on the validator reference within the
using page,
the validator will automatically be assigned to the inputText with the id
'input'.

On 10/15/09 12:33 PM, webtier_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>