Hi ice, > public Object onSubmit() > { > return Start.class; > } Rename the method to onSuccess(). That should solve the problem.
Regards, nillehammer ----- original Nachricht -------- Betreff: Tapestry 5 server side validation Gesendet: Do, 05. Jun 2008 Von: ice96<[EMAIL PROTECTED]> > > Hello, > I have problems with tapestry 5 server side validations. First o all there > is my code: > package org.example.myapp.model; > > import org.apache.tapestry.beaneditor.NonVisual; > import org.apache.tapestry.beaneditor.Validate; > > public class User { > private int id; > private String name; > private String surname; > > > public int getId() { > return id; > } > @NonVisual > public void setId(int id) { > this.id = id; > } > @Validate("required") > public String getName() { > return name; > } > > public void setName(String name) { > this.name = name; > } > > @Validate("required") > public String getSurname() { > return surname; > } > > public void setSurname(String surname) { > this.surname = surname; > } > } > > > > package org.example.myapp.pages; > > import org.example.myapp.model.User; > > public class Register { > private User user; > > public User getUser() { > return user; > } > > public void setUser(User user) { > this.user = user; > } > > public Object onSubmit() > { > return Start.class; > } > > } > > > <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> > <head> > <title>Register Page</title> > </head> > <body> > <h1>myapp Start Page</h1> > > <p> This is the start page for this application, a good place to > start your modifications. > Just to prove this is live: </p> > > > <t:beaneditform t:id="user" /> > > </body> > </html> > > > > After disabling java script validation stop working. Some times after page > refresh I can see validatio messanges, but not after click submit button. I > have tested on firefox 3 and opera (in linux) > -- > View this message in context: > http://www.nabble.com/Tapestry-5-server-side-validation-tp17680152p17680152. > html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- original Nachricht Ende ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]