The dot notation now works with included objects the same way it works with 
other values defined within the document - it refers to the properties of the 
object rather than the namespace of the document that defined the object. This 
helps preserve encapsulation and promotes the notion of documents as individual 
modules with their own private namespace.

You can replicate the previous behavior by defining a property on the root 
object of your include that exposes the named value.

G

On Jan 15, 2011, at 3:51 AM, Jérôme Serré wrote:

> Hello,
> 
> With WTKXSerializer i could get an id in other file by using “.”
> In 2.0 it’s not possible. How can I get it with “namespace” ?
> I don’t see example in tutorial
> 
> Thank you for your help
> Jérôme
> 
> Example :
> wtkxSerializer.get("menuPrincipale.administration");
> 
> <wtkx:include wtkx:id="menuPrincipale" src="menuPrincipale.wtkx"/>
> “menuPrincipale.wtkx”
> …
> <MenuBar.Item wtkx:id="administration" buttonData="%administration">
> …
> 
> ____________________________
> La gestion de votre cave
> <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
> 
> 

Reply via email to