cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: CForms - load / save to different targets
Date Thu, 23 Sep 2004 15:42:23 GMT
Jorg Heymans wrote:

> Hi,
>
> My form has a multivaluewidget, it's values are retrieved from an 
> Arraylist in the bean that is populated using Hibernate. The user then 
> selects a few values and presses "next".
> Now i would like to save these selected values into a different 
> arraylist then the one where the values are retrieved from. Rationale: 
> i don't want to destroy the original dataset because it's quite 
> expensive to retrieve.
>
> Is changing the setter method for the Arraylist the only option here? 
> Or can i somehow in my javascript binding say "save the collection 
> into a different location in the bean" ?

I believe there is a direction option available in the binding definition.

Bind the widget twice, once for load, once for save.

That should do it.

Regards, Upayavira


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message