I have no problem with validators for a  TextField
within a custom component. 

You might like  to post your component's .java, .jwc.
and .html  and see if anyone in the list can help.

Shing 


--- Rui Pacheco <[EMAIL PROTECTED]> wrote:

> 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
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


                
___________________________________________________________ 
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy 
and free. http://uk.docs.yahoo.com/trueswitch2.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to