You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Thiago H de Paula Figueiredo <th...@gmail.com> on 2007/07/23 23:22:51 UTC

T5: TextArea strange behavior

Hi!

Is it just me or the Tapestry 5 TextArea component (5.0.5, non snapshot)  
sets the bound field to null when the user leaves the text area blank?

Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: TextArea strange behavior

Posted by Nick Westgate <ni...@key-planning.co.jp>.
Yes, the default translators do this. See Translator and StringTranslator.
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/Translator.html

String is the odd one out because representing null and "" differently
client side is difficult.

You can provide your own translator if you wish.

Cheers,
Nick.


Thiago H de Paula Figueiredo wrote:
> Hi!
> 
> Is it just me or the Tapestry 5 TextArea component (5.0.5, non snapshot) 
> sets the bound field to null when the user leaves the text area blank?
> 
> Thiago
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org