Hi all
I've been knocking my head on the wall trying to find whats wrong here, and
I can't see anything.
I have a set of fields, inside a form, in an html snippet I defined as a
component. I created a html file that contains just a snippet of that file,
a .jwc file that contains the definition for the elements inside the
template and a corresponding class.
Everything works fine, except for Validators.
I the .jwc file I defined my fields as being required, but there is no
validation being done at runtime. If I don't insert something on the fields,
I get an NPE on my bean, which is obviously expecting something from the
template.
I've had validators work before, and the difference between those pages and
this one is the fact that I'm doing everything inside a .jwc and not a .page
file.
This is my component definition:
<component id="password" type="TextField">
<binding name="value" value="ognl:password"/>
<binding name="hidden" value="ognl:true"/>
<binding name="validators" value="validators:required"/>
</component>
Has anyone seen anything like this? Have you had validators working on
component definitions?
--
Cumprimentos,
Rui Pacheco