[Laszlo-dev] [Boston-dev] rpc reference page example code

P T Withington ptw at pobox.com
Fri Mar 21 10:17:21 PDT 2008


This was introduced by my user-class compiler change.  I have to track  
it down.  It's because the class already has a name (the name of the  
class) and it also has a name attribute.  This should be allowed, but  
it is triggering a warning.

On 2008-03-21, at 11:36 EDT, Lou Iorio wrote:
> The compiler is giving me this error when I run the code with the  
> console:
>
> rpc/rpc.lzx:235:45: an attribute or method named 'name' already is  
> defined on element class
>
> Here's the code that's causing the problem:
>
>    <!--- A class to invoke rpc methods more declaratively. -->
>     <class name="remotecall" extends="node">
>         <!--- Name of remotecall. Default is value of funcname  
> attribute. -->
>         <attribute name="name" value="$once{null}" />
>
> in ~/src/svn/openlaszlo/trunk/lps/components/rpc/rpc.lzx
>
> I don't understand what's going on here. Any help?
>
> The reference page is here.
>
>



More information about the Laszlo-dev mailing list