You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stephan Coboos <cr...@gmx.net> on 2004/09/15 14:59:55 UTC

Using HashMap with CForms bidning repeater?

Hello,

is it possible to use a HashMap to retrieve and add values using the 
CForms binding and the repeater element? If yes how do I set the key? Is 
there an example available?

Thank you.

Regards
Stephan


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


Re: Using HashMap with CForms bidning repeater?

Posted by Stephan Coboos <cr...@gmx.net>.
Stephan Coboos wrote:

> Hello,
>
> is it possible to use a HashMap to retrieve and add values using the 
> CForms binding and the repeater element? If yes how do I set the key? 
> Is there an example available? 


Maybe I found the answer by myself: For reading the list of the model 
the repeater uses JXPath so it is possible to use a HashMap. To add a 
new element into the HashMap I need to implement a add method myself 
which sets the new object into the HashMap using its own key. Thats all 
I need I think?

Regards
Stephan





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