• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OnSuccess() not getting called in Tapestry 5.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i had created a demo tml & java using Tapestry 5.
It's a simple page which has some text fields & i had added validation in the tml files for the TextField.
When i press submit , onSuccess Method doesn't gets called..?
Below is the portin on my code.

Can anyone help me on this ..?

Login.tml
<html>
....

....

<td class="label">Name:</td>
<td class="content"><input t:type="TextField" t:id="name" t:value="name" size="4" maxLength="4" t:validate="required, maxLength=4"/></td>
<td colspan="3"><input type="submit" value="Login"/></td>

</html>


Login.java

....
...

void onSuccess(){

System.out.println("<---------------onSuccess--------------->");
if( name is Valid)
redirect to Next page
}
 
reply
    Bookmark Topic Watch Topic
  • New Topic