As I said, Tapestry can't find your page class.  It doesn't know that
Login.html is supposed to use the Login class you've defined.  Have you told
it the default package to look for page classes?  Are your templates/page
classes in the right places?



-----Original Message-----
From: Ken nashua [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 13, 2006 11:22 AM
To: users@tapestry.apache.org
Subject: @Component whoas... Tap-4.1.1 help please (thanks)

Guys,

All I am trying to do is operate a model object Person.getEmailAddress() 
from html to java.


Whats the deal with this notation...

@Component(type = "TextField", id = "emailAddress", bindings = {
        "value = ognl:person.emailAddress",
        "displayName = message:label.emailAddress", "validators = required"
})
public abstract TextField getEmailAddressComponent();
public abstract String getEmailAddress();

I cannot get past it. it keeps yeilding

[ +/- ] Exception: Component emailAddress conflicts with a prior declaration

in the specification (at Annotation 
@org.apache.tapestry.annotations.Component(inheritInformalParameters=false, 
type=TextField, bindings=[value = ognl:person.emailAddress, displayName = 
message:label.emailAddress, validators = required], id=emailAddress) of 
public abstract org.apache.tapestry.form.TextField 
proto.Login.getEmailAddress()).

All I want to do is use

<td>
    <input jwcid="[EMAIL PROTECTED]" value="ognl:person.emailAddress"
                validators="validators:required" 
displayName="message:label.emailAddress" />
</td>

If I swap or omit any of the accessor methods it keeps complaining.

Is tap-4.1.1 usable?

Thanks in advance



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