Pre-filling TextAreas with values

2010-11-21 Thread tmarx78
Hello everyone!

Is it possible, that TextAreas ignores the body?

http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/TextArea.html

Example:

Inside of an AjaxFormLoop 
(http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/ajaxformloop1)

TextAreas should be pre-filled with a text, that is read from a different field 
than it should be saved to:

t:textarea  
value=questionAndAnswer.enteredAnswer${questionAndAnswer.AnswerSuggestion}/t:textarea

However, it seems like TextArea ignores its body?

Thanks!

Tobias

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



Re: Pre-filling TextAreas with values

2010-11-21 Thread Thiago H. de Paula Figueiredo

On Sun, 21 Nov 2010 16:53:19 -0200, tmar...@gmx.de wrote:


Hello everyone!


Hi!


Is it possible, that TextAreas ignores the body?


Yes!

t:textarea   
value=questionAndAnswer.enteredAnswer${questionAndAnswer.AnswerSuggestion}/t:textarea


Just set the answerSuggestion property of questionAndAnswer before the  
form is rendered. You can use the Form's prepareForRender event or  
onActivate() or setupRender().


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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