You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sheikh hossain <sh...@gmail.com> on 2016/10/10 19:47:35 UTC
How to add default row in AjaxFormLoop
I wonder how to add a default row in AjaxFormLoop when a page renders.
The issue we are facing is I can pre-build a default row within
setupRender() or onPrepareForRender() or even within onActivate() methods
and the page correctly shows the default row with default values which
consists of text fileds.
But after submit I only get the default values on the server side even when
a user enters a different text value on the text filed.
Looks like the entered values are not getting added within the event
context.
I am not sure if I am missing something here to make the default row works.
We are using T5.3.8.
Any suggestion or help will be greatly appreciated.
Thanks.
Re: How to add default row in AjaxFormLoop
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
You're passing a collection to AjaxFormLoop. Just add an object to that
collection.
On Mon, 10 Oct 2016 16:47:35 -0300, sheikh hossain <sh...@gmail.com>
wrote:
> I wonder how to add a default row in AjaxFormLoop when a page renders.
>
> The issue we are facing is I can pre-build a default row within
> setupRender() or onPrepareForRender() or even within onActivate() methods
> and the page correctly shows the default row with default values which
> consists of text fileds.
>
> But after submit I only get the default values on the server side even
> when
> a user enters a different text value on the text filed.
>
> Looks like the entered values are not getting added within the event
> context.
>
> I am not sure if I am missing something here to make the default row
> works.
> We are using T5.3.8.
>
> Any suggestion or help will be greatly appreciated.
>
> Thanks.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org