Yup... Got it...
Thanks... On Jun 21, 2012 11:10 AM, "Bob Schellink" <[email protected]> wrote: > Hi Parth, > > Have a look at this section in the Form Javadoc: > > http://click.apache.org/docs/click-api/org/apache/click/control/Form.html#manual-layout > > It shows an example how to render the field errors. > > regards > > Bob > > > On 19/06/2012 19:38 PM, Parth Joshi wrote: > > I cant figure out how to get Form Validation Errors in custom Form > Template.... > > My Htm file goes like this: > > <div id="header"><span id="title">Register</span></div> > > #if ($msg) > > <div id="msgDiv">$msg</div> > > #end > > <div id="container"><b>Welcome</b> Please enter the fields below > > to register...</div> > > ${registerForm.startTag()} > > <div id="registerForm_errors"> > > ... something to put here to fetch errors.... > > </div> > > <div id="registerTabs"> > > <ul> > > <li><a href="#tab1">Personal Details</a></li> > > <li><a href="#tab2">Family Details</a></li> > > <li><a href="#tab3">Kundali Details</a></li> > > <li><a href="#tab4">Expectation</a></li> > > </ul> > > <div id="tab1"> > > ${registerForm.fields.personalDetailFieldSet} > > </div> > > <div id="tab2"> > > ${registerForm.fields.familyDetailsFieldSet} > > </div> > > <div id="tab3"> > > ${registerForm.fields.kundaliDetailsFieldSet} > > </div> > > <div id="tab4"> > > <p>Please enter your expectations:</p> > > </div> > > </div> > > ${registerForm.fields.submit} > > ${registerForm.endTag()} > > $jsElements > > .... > > Please help > > Thanks and regards, > > -- > > Parth J Joshi >
