cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: persisting re-arranged repeater-rows
Date Tue, 25 Nov 2003 21:43:34 GMT
On Tue, 2003-11-25 at 13:47, Jeremy Quinn wrote:
> Hi All,
> 
> I am struggling with persisting re-arranged repeater rows.
> 
> I have a form that edits an Album Bean which has a (java.util.List) 
> 'Resources' Property which is populated by Resource Beans.
> 
> I have the List of Resource Beans represented in the form as a 
> repeater-widget, with move-up, move-down buttons.
> 
> When I click one of the up/down buttons, the repeater-rows get 
> re-arranged correctly in the form.
> 
> When I save the Album (I am using Hibernate, with cascading) the change 
> in the ordering is not persisted.
> 
> I am clearly missing something ..... has anyone else had with a similar 
> issue?
> 
> Any suggestions?

No need to look further: AFAIK the binding currently doesn't sync order,
it only checks for new or removed rows. So it considers the list to
which the repeater binds to be an unordered set.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message