You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrea Chiumenti <ki...@gmail.com> on 2006/12/13 09:33:16 UTC
Plz help with validators.
Hello, I'm having problems with cutom validators (Tap 4.0.2).
I've put into my hivemind.xml:
<contribution configuration-id="tapestry.valid.Validators">
<bean name="jflyrequired" class="
org.jfly.webcommons.webutils.tapestry.valid.form.Required" />
</contribution>
then into my .page file:
<component id="nameField" type="TextField">
<binding name="value" value="ognl:itemLoop.name"/>
<binding name="validators" value="validators:jflyrequired"/>
<binding name="displayName" value="ognl:titleColumnCollection[0]"/>
</component>
When I try to access the page I've back:
No validator named 'jflyrequired' has been defined.
What am I missing ?
Thx in advance,
kiuma
Re: Plz help with validators.
Posted by Andrea Chiumenti <ki...@gmail.com>.
Sorry, [SOLVED]
<contribution configuration-id="tapestry.form.validator.Validators">
<validator name="jflyrequired" configurable="false" class="
org.jfly.webcommons.webutils.tapestry.valid.form.Required" />
</contribution>
-----------------------------------------------------------------------------------
On 12/13/06, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> Hello, I'm having problems with cutom validators (Tap 4.0.2).
> I've put into my hivemind.xml:
>
> <contribution configuration-id="tapestry.valid.Validators">
> <bean name="jflyrequired" class="
> org.jfly.webcommons.webutils.tapestry.valid.form.Required" />
> </contribution>
>
> then into my .page file:
> <component id="nameField" type="TextField">
> <binding name="value" value="ognl: itemLoop.name"/>
> <binding name="validators" value="validators:jflyrequired"/>
> <binding name="displayName"
> value="ognl:titleColumnCollection[0]"/>
> </component>
>
> When I try to access the page I've back:
> No validator named 'jflyrequired' has been defined.
>
> What am I missing ?
>
> Thx in advance,
> kiuma
>