[Laszlo-dev] Re: For review: Change 33441 Summary: Avoid redefinition warnings in replicators

Oliver Steele steele at laszlosystems.com
Fri Oct 7 10:21:24 PDT 2005


Should there be a warning when a replicated node has a name?

On Oct 6, 2005, at 10:44 PM, P T Withington wrote:

> Change 33441 by ptw at ptw-dev-three on 2005/10/06 19:04:35 *pending*
>
>     Summary: Avoid redefinition warnings in replicators
>
>     Bugs Fixed:
>     LPP-755 'Remove confusing grid redefinition warnings'
>
>     Technical Reviewer: hminsky (pending)
>     QA Reviewer: antun (pending)
>     Doc Reviewer: jsundman (pending)
>
>     Details:
>
>     LzReplicationManager: remove the view that you will replace so
>     you don't get a redefinition warning.
>
>     gridtext: it does not make sense to name a replicated view
>
>     Documentation:
>
>     When you see a warning in the debugger:
>
>     WARNING: Redefining «someclass#80».somename from  
> «anotherclass#78| .somename» to «anothernotherclass#82»
>
>     it means you have tried to have more than one child of
>     someclass with the name somename.  This is invariably an
>     error, since only the last thing you name somename will be
>     accessible using that name.  You should examine your code for
>     a duplicate name.  Occasionally this error will occur because
>     a databinding is causing a node to be replicated.  This is
>     also an error, because again, only the last replicated node
>     will be accessible by that name.  Most likely, you should not
>     name the node at all if it is going to be replicated.
>
> Affected files ...
>
> ... //depot/lps-dev/WEB-INF/lps/lfc/data/LzReplicationManager.as#7  
> edit
> ... //depot/lps-dev/lps/components/lz/gridtext.lzx#4 edit
>
>
> <changeset-33441.zip>
>




More information about the Laszlo-dev mailing list