On Sat, 2004-05-08 at 14:20, Joerg Heinicke wrote: > On 08.05.2004 11:55, roy huang wrote: > > > var wid = form.getWidget(); > > > wid.email.value = "[EMAIL PROTECTED]"; <- here > > > > Is getWidget() wrong by now? > > The above one not as it is a JavaScript function. Until my fix wid was > already undefined, this is fixed. Don't know why it worked until some > days ago ... > > But now wid.email is undefined. I tried to do some remote debugging for > seeing how ScriptableWidget works, but it stopped only in the > constructor, not get***() method was called. Maybe someone else knows > how to fix it.
yep, it was some confusion between the java and javascript form objects (the v2 api does not expose the java one), and the semantics of the javascript getWidget() function. Fixed it now. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED]
