This is what I am trying to do. But I could not pass the error flag from page
to component(AttLabel). I do not want to use @Persist to do this, but like
to add it to something like request object. So what annotation can I use? 
Can you show me the way (some codes) to do this? 

Xinhua


Michael Courcy wrote:
> 
> I you have control on the validation why not putting a flag in your 
> component when a validation error happen.
> 
> Your render process would depend of this flag.
> 
> does it help ?
> 
> Xinhua a écrit :
>> I create a custom component (AttrLable) which extends AbstractField. In
>> the
>> BeginRender(MarkupWriter writer), I will need to override the label tag
>> based on whether there is an error in the input field which is associated
>> to
>> this label. 
>>
>> On the form submission, I will do the form validation and if errors are
>> found, I will highlight the label and input field in the form page. But
>> the
>> problem is how I can pass the error flag to the component class
>> (Attrlabel)
>> which will rend the component.
>>
>> Thanks in advance!
>>
>>
>> Xinhua 
>>   
> 
> 
> -- 
> Michael Courcy
> http://courcy.blogspot.com
> http://courcy-en.blogspot.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-5---Custom-Component-Validation-tp15186101p15213531.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to