You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by tm...@gmx.de on 2010/11/21 19:53:19 UTC
Pre-filling TextAreas with values
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Pre-filling TextAreas with values
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Sun, 21 Nov 2010 16:53:19 -0200, <tm...@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org