[Bese-devel] Simple-form inside TAL and (validp)

Maciek Pasternacki maciekp at japhy.fnord.org
Wed Apr 5 23:55:38 UTC 2006


My code goes like this: I have template component, let's call it foo,
which renders simple-form, called bar, with <ucw:render/> tag inside
TAL.  This form, in its submit action, does (answer-component
(ucw::parent self) return-value).  And everything would be ok, but the
submit action wants to call (validp self) first; validp loops over all
slots of the class and barfs on trying to access slots
'ucw::continuation and 'ucw::calling-component -- they're undefined
since form wasn't called directly but only used as a widget inside
other component.

For a moment I plumbed it over in form.lisp by not checking those two
slots, but the question is if changing my code (i.e. to make my TAL a
container component (which IMO would make no sense because this
template is used only once with this one form) or otherwise (call) bar
form directly) wouldn't be Righter Thing To Do?  I'm not sure if the
bug is mine or ucw's, and when it comes to continuations and
metaclasses my brains starts to hurt so I figured I'd better ask ;)

-- 
-><- This signature intentionally left blank. -><-




More information about the bese-devel mailing list