Thank you for your reply, it works but not as expected

I have a button to check the username keyed in the form with the database
for existence and I want to show a message if the username already exists in
the same page 

I tried that above coding and I filled the firstname, lastname, username and
when I clicked on the button it just goes to the java class and and it
prints the method what I've coded (this part works fine)

but in the UI it shows 

You must correct the following errors before continue,

You must provide a value for password
You must provide a value ------
You must provide a value ------

So I dont want this as form success action method, if I click on the button
which I had near username it just go to java page where I check the user
name existence and simply return to the page with a message Username already
exists and no message for non-existence cases.

Also all the other typed values should not get cleared when I click that
button!

How can I do that?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-call-a-method-in-java-page-for-button-submit-action-tp5491713p5491995.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to