[Seaside] Dynamically adding children

Francois Beausoleil francois.beausoleil at gmail.com
Thu Oct 5 01:53:00 UTC 2006


Hello Philippe,

2006/10/3, Philippe Marschall <philippe.marschall at gmail.com>:
> self session registerObjectForBacktracking: self

Thanks for your help.  I finally had time to try it again, with
backtracking.  Unfortunately, it doesn't work either.  After I click
the submit button to add a new address, the view redisplays, but I
don't get the expected address editor.

If I start a new session and visit the contact, the new address IS added.

For reference, here is part of my #renderContentOn again:
html label: 'New address named' input: [
html textInputWithCallback: [:name |
	self model addressAt: name put: Address new.
	subcomponents add: (self addressEditorFor: (self model addressAt:
name) named: name)].
html submitButton.

I am really at a loss as to what I should do here.

Thanks !
-- 
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/


More information about the Seaside mailing list