[Seaside] How to dynamically add to list of sub-components with Ajax?

Damien Cassou damien.cassou at laposte.net
Mon Jul 31 05:04:25 UTC 2006

itsme213 wrote:
> I have domain classes House and Room, and SUComponents HouseView and 
> RoomView, each directly editable.
> HouseView contains (via inst-var) a list of RoomViews and a '++' anchor 
> which adds a new room to the House.
> How do I get the '++' to correctly update only the list of RoomViews in 
> the browser (via Ajax)? What should #children look like for HouseView?

I don't know about SUComponents but you may try to create a component 
rendering a collection of other components. On '++' callback, ask for 
this collection component to refresh.

Hope that helps

More information about the Seaside mailing list