Where are you specifying the clientside validation? Have you tried adding t:validate="required" or some other validation type to your textfield?
On Tue, Jan 6, 2015 at 10:17 AM, Sumanth <roasteddra...@gmail.com> wrote: > Hello All, > > Consider this situation that, we have two forms with text boxes , one > inside ajax, other outside ajax > > <t:zone t:id="Zone1" id="Zone1"> > <form t:type="form" t:id="selectForm" class="form-horizontal" > role="form" zone="^"> > <t:TextField t:id="firstnameTxt" t:value="firstname" /> > <t:submit value="submit" ></t:submit> > </form> > </t:zone> > > <form t:type="form" t:id="OutsideZone" class="form-horizontal" role="form"> > <t:TextField t:id="firstnameTxtOutsideZone" > t:value="firstnameOutsideZone" /> > <t:submit value="submit" ></t:submit> > </form> > > // java side > > > void onValidateFromzone1() { > selectDateForm.recordError(firstnameTxt, "Hi Txt"); > } > > void onValidateFromOutsideZone() { > selectDateFormOutsideZone.recordError(firstnameTxtOutsideZone, "Hi hi > Txt"); > } > > [image: Inline image 1] > And validation errors happen on these fields on server side and we attach > a validation error message. > > In the form outside the zone, the validation error is bound to the > component and just appears right below the textfield. just like how "the > field is required" appears when a text field is marked as required and no > value is given. > > But when the same form is inside ajax this does not happen, and the only > way we can see the error is by attaching <t:errors /> component inside the > form. > > Any reason why the behaviour is like this. I would like to have the same > functionality on both. > > Thanks, > -- George Christman CEO www.CarDaddy.com P.O. Box 735 Johnstown, New York