problem solved, i missed t:formstate="ITERATION"

But another little problem, In my page I have two t:Form with each one
having his t:errors, still, what could be the form submitted the error
displaying always happen on the same one, the second one in my page. Why ?


2014-07-22 12:33 GMT+02:00 Geoff Callender <
geoff.callender.jumpst...@gmail.com>:

> These may help:
>
>         T5.4:
> http://jumpstart.doublenegative.com.au/jumpstart7/examples/tables/editableloop1
>         T5.3:
> http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/editableloop1
>
> Geoff
>
> On 22 Jul 2014, at 7:14 pm, squallmat . <squall...@gmail.com> wrote:
>
> > Hello,
> >
> > as said in title I have a loop on a list of objects (with his encoder) :
> >
> > <t:Form t:id="formUpdateType">
> > <t:Errors />
> > <table >
> > <tr >
> > <th>${message:typeName}</th>
> > <th>${message:remarks}</th>
> > <th></th>
> > </tr>
> > <t:Loop t:source="typeClientDtoList" t:value="typeClientDtoLoop"
> > t:encoder="typeClientDtoEncoder">
> > <tr>
> > <td>
> > <t:TextField t:value="typeClientDtoLoop.NomType" />
> > </td>
> > <td>
> > <t:TextField t:value="typeClientDtoLoop.Remarques" />
> > </td>
> > <td>
> > <t:ActionLink t:id="delete"
> > context="typeClientDtoLoop.Id">${message:delete}</t:ActionLink>
> > </td>
> > </tr>
> > </t:Loop>
> > </table>
> > <t:submit value="${message:updateTypes}" class="button" />
> > </t:Form>
> >
> > I initialize the list of objects in onActivate() :
> >
> > // initialize list of types if null
> > if (typeClientDtoList == null) {
> >       typeClientDtoList = new ArrayList<TypeClientDto>();
> >  typeClientDtoList = serviceTypeClient.findAllTypeClientDto();
> > }
> >
> >
> > I would like to be able to update/merge in DB all modifications of all
> > objects in my list
> > But when I go in the validate event of my form when I submit, each
> objects
> > still contains the initial values, not the modifications made in the
> > displayed textfields. It's like there is no synchronization between the
> > textfield and the objects.
> >
> > What am I doing wrong ? How can I achieve what I want ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to