I believe this was a known issue which has just been fixed: https://issues.apache.org/jira/browse/TAP5-2391

On Tue, 06 Jan 2015 13:17:57 -0200, 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");
 }
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,



--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

Reply via email to