You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Parakrama Ranasinghe <pa...@aeturnum.com> on 2008/04/29 11:25:46 UTC

Problem in tapestry form submition with ajax

 I have a html page which has two '<div> ' tags. First div tag consist with static content. My second div tag contains a form. When I submit that form my tapestry page will validate that form and if there are errors  they will display inside the form.
 <html.>
 
 
 <div id="head">
 <!-- static content  is display here-->
 </div>
 
 
 <div id="body">
 
 
 <t:form t:id="selectPayment" t:client Validation="true">
  <t:errors/>
 
 
 <! some text box and radio buttons are here-->
 
 
 <input type="submit" value="Next" id="submit"/>
 </t:form>
 </div>
 </html>  
 
 
 However this is not what I need , i want to achieve following two scenarios  
 
 
 1) when form validation is successful, new page (Response ) should load to the "body" area ,( <div id="body">)
 
 
 2) when validation is not successful , same form should display without reloading, together with error message for previous submission.
 
 
 How can i achieve this using Tapestry 5.0.10 ..? due to some practical difficulties i cant upgrade in to tapestry 5.0.11 version