Are you sure you've copied the source exactly?

It's telling you that it can't match components with those id's to
component fields in the Java class.

So
    <input t:type="PasswordField" t:id="password" t:validate="required,minlength=3" 
size="30"/>
...
    @Component(id = "password")
    private PasswordField _passwordField;

Cheers,
Nick.


Jean-Philippe Steinmetz wrote:
Well that problem seems to have been solved. Now I'm getting the message

Component Login does not contain an embedded component with id 'form'.

And
Component Login does not contain an embedded component with id 'password'.

Jean-Philippe

-----Original Message-----
From: Nick Westgate [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 05, 2007 8:13 PM
To: Tapestry users
Subject: Re: Input Validation example

This should work automatically. Read the component reference for
TextField.
Your java class should define a property with the same name as the field's
id.

(It's already there if you copied the source.)

Cheers,
Nick.


Jean-Philippe Steinmetz wrote:
Hello all,



I'm having some trouble with the input validation example. I have
everything
set up as described in



http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html



but am getting the following error for my Login page:



Parameter(s) translate, value are required for
org.apache.tapestry.corelib.components.TextField, but have not been
bound.


Anyone know why? I'm using Tap 5.0.5



Jean-Philippe Steinmetz

-----------------------------------

Webmaster / Developer

Information Sciences Institute

University of Southern California

[EMAIL PROTECTED]

310.448.8471




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




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



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

Reply via email to