[Seaside] Help with updating forms the AJAX way...

Ramon Leon ramon.leon at allresnet.com
Wed Oct 3 23:29:31 UTC 2007


> Ok, I got through most of this by obeying a few simple things....
> 
> I refactored how my render methods relate to the divs I want to
> update: for the method #renderButtonsOn: I would have div 
> called 'actionButtons'. As long as I initially set it up as:
> 
> renderContentOn: html
> 
> html div id: 'actionButtons' with: [self renderButtonsOn: html].
> ...
> 
> 
> then I can do things like
> 	html evaluator
> 		callback: [:s | s id: 'actionButtons'; render: 
> [:r | self
> renderButtonsOn: r].
> 		....
> 
> and it works fine. I had things composed so that #renderButtonsOn:  
> would look like:

Yup, the updaters update the contents of the div, the div itself should not
be re-rendered.

Ramon Leon
http://onsmalltalk.com  



More information about the seaside mailing list