I'm trying to create an entity Client which has a list of Contacts,
In my persistence layer these Contacts are stored by cascading on the
storing of a client, then I don't want to persist my contact in my db one
by one when I add a row.

Still, in the Client entity that i will persist at the submit, I store my
contacts in it :
// when adding a contact row
Object onAddRowFromContacts() {
ContactDto contactDto = new ContactDto();

clientDto.getContactList().add(contactDto);

return contactDto;
}

Is there a way to achieve what I want, keep my rows at language switching
without persisting in db ?



And also, how can I change the the text "Add row" ?


(And yet : thanks for your help)


2014-07-16 17:39 GMT+02:00 Thiago H de Paula Figueiredo <thiag...@gmail.com>
:

> On Wed, 16 Jul 2014 11:05:30 -0300, squallmat . <squall...@gmail.com>
> wrote:
>
>  I'm using an ajaxformloop component, that works really well.
>>
>> But my webapp is developed in two languages : english and french, and when
>> I tried to switch to another localization the added rows disappear,
>> and if i switch back to the first langauge the rows are reappearing and
>> are
>> empty.
>>
>> Is there methods to make ajaxformloop working in case of localization
>> switching ?
>>
>
> This is completely unrelated to language switching. This is caused by your
> code not persisting the data in the form in some way or another. Any other
> action which reloads the page would do the same.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to