« Return to Thread: Reference Error
From: Mike Wilson [mailto:mikewse@...]
Sent: den 10 juni 2009 20:57
To: users@...
Subject: RE: [dwr-user] Reference ErrorNo, it isn't, and we should be able to get your example working. Could you send along a somewhat larger snippet (10 lines before and after) of the generated code around the line with the error?Best regardsMike Wilson
Adding the subclass converter alone does work.
From: Florian Schneider [mailto:flo.schneider@...]
Sent: den 10 juni 2009 16:10
To: users@...
Subject: Re: [dwr-user] Reference Error
So is this a common practice NOT to include superclasses of classes already known to DWR?
2009/6/10 Jose Noheda <jose.noheda@...>
Have you tried adding the subclass converter alone?
On Wed, Jun 10, 2009 at 3:27 PM, Florian Schneider <flo.schneider@...> wrote:
Hello,
when I add the following lines to my dwr.xml
<convert match="foo.bar.SuperClass" javascript="SuperClass" converter="bean"/>
<convert match="foo.bar.SubClass" javascript="SubClass" converter="bean"/>
where SuperClass is the SuperClass of SubClass, I see the following error in my Firebug console:
"ReferenceError: SubClass is not defined"
, referencing the line in the generated js (one of the files that have creators defined)
SubClass.prototype = new SuperClass();
Please excuse my blindness, but what am I doing wrong? I am using DWR 3.0rc1.
Thanks for your help,
Florian
« Return to Thread: Reference Error
| Free embeddable forum powered by Nabble | Forum Help |