Hi Tucker,

Thanks for the answer. I created another jira bug to cover the components/rpc stuff. If you look in javarpc.lzx, it creates an attribute called 'classname' and assumes it will be filled in:

<!--- The remote class name associated with the remote object. This must
              be set if creating the remote object. If loading the object, the
              classname will be set during onload. -->
       <attribute name="classname" type="string" />



Phil

On 2006-10-25, at 09:08 EDT, Philip Romanik wrote:

[...]

> I've got a question for you. If you create an <attribute> tag using
> an existing variable name (from LzNode), does it point to the
> underlying variable?

If you give it no initial value, you will see the inherited value.
If you give it a value, you are effectively overriding the inherited
value.  `attribute` is the LZX equivalent to a Javascript instance
`var`.  The property will be shared.

Note that the compiler will warn you if you declare the same
attribute twice in a class.  It should also warn you if you override
an inherited attribute (and you should be able to declare that you
intend to, to silence the warning).  It is difficult to do this for
the built-in tags because the compiler does not know all their
attributes (although it should).

Reply via email to