Is there not a simpler way??
J.

2007/4/4, David Delbecq <[EMAIL PROTECTED]>:

Probably this may fits your need?

<h:messages for="age"/>
<h:inputText id="age" value="#{ MyBean.age}" required="true">
<f:validateLongRange minimum="5"/><!-- Notice that this is not an inline
validator -->
</h:inputText>

If not, then you will have to write a custom component that does it for
you (locate component, check if it has an inputValue, check validity and
only renders content if needed):
<my:incorrectOrEmpty for="age">
<h:outputText .../>
</my:incorrectOrEmpty>
<h:inputText id="age".../>


En l'instant précis du 04/04/07 10:22, Julien Martin s'exprimait en ces
termes:
> Hello,
>
> I would like for an outputText element to be hidden (i.e. not
> rendered) when the corresponding inputText element has input and
> validated (by a standard tag-based validator). Is that possible?
>
>
> <h:outputText id="age-label" rendered="??" value="Fill in your age"/>
> <h:inputText id="age" value="#{ MyBean.age}" required="true">
> <f:validateLongRange minimum="5"/><!-- Notice that this is not an
> inline validator -->
> </h:inputText>
>
>
> Thanks in advance,
>
> Julien.


Reply via email to