cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: [CForms]v2 sample broke in current cvs version
Date Sat, 08 May 2004 12:53:47 GMT
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 = "bar@www.foo.com";    <- 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
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message