Hi, I suppose you need the reference to instance of nested bxml element to manipulate it. You can do this indirect using property binding - see http://pivot.apache.org/tutorials/property-binding.html.
Then to change for example the text property of nested TextInput you change the value of bounded property. So you do not need the direct reference to bounded TextInput, but you still need the reference to instance holding property bounded value. The model instance can be shared between parent and nested bxml files and you bound the gui control properties to shared model. It is little more complex, but you can see description of application archtecture we use here: https://code.google.com/a/apache-extras.org/p/pivot-contrib/wiki/Application Architecture . Regards Karel -----Original Message----- From: Ripgiblet [mailto:[email protected]] Sent: Tuesday, January 21, 2014 7:53 AM To: [email protected] Subject: Re: in java how can i reference the instance define in a nested bxml's "bxml:id..." Still the question remains... How can you reference the objects in nested bxml files? You cant always use inline, since the id: does not seem to be able to take a variable... so you cant nest any bxml code with duplicate TextInput for example if its in the same variable space, since you cant seem to make: <bxml:script> var vTextInput = "TextInput" + vTab; </bxml:script> <TextInput bxml:id="$TextInput" styles="{font:'Arial bold 28', color:'#000000', horizontalAlignment:'left'}"/> Just says that the id is $TextInput and that it is a duplicate if you include it again... It works for actions but not for bxml:id... So it seems you have to not make it inline and reference it somehow? -- View this message in context: http://apache-pivot-users.399431.n3.nabble.com/in-java-how-can-i-reference-t he-instance-define-in-a-nested-bxml-s-bxml-id-tp4022008p4022830.html Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
