You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/09/05 07:24:58 UTC

[GitHub] [royale-asjs] piotrzarzycki21 commented on issue #457: ApplicationDataBinding is failing with constants

piotrzarzycki21 commented on issue #457: ApplicationDataBinding is failing with constants
URL: https://github.com/apache/royale-asjs/issues/457#issuecomment-528235938
 
 
   @greg-dove I'm not sure if it's related but I discovered another case where it's failing :( 
   I have custom component which contains property `selectedItem ` with [Bindable] tag. I would like to have `Disabled` working when `selectedItem ` changed. In general binding for some reason work worse than it was before. :/
   
   ```
   <j:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009" 
   		  xmlns:j="library://ns.apache.org/royale/jewel">
   	  <j:beads>
   		<js:ContainerDataBinding />
   	</j:beads>
   <j:Form localId="formBody">
   		<j:beads>
   			<j:FormValidator id="formValidator" trigger="{btnSubmit}" triggerEvent="click"/>
   		</j:beads>
   		<j:FormItem label="Customer ID:" required="true">
   			<controls:AccountSelector localId="ddlCustomerId" />
   		</j:FormItem>
   		<j:Spacer height="20"/>
   		<j:FormItem label="First Name:" required="true">
   			<j:TextInput percentWidth="100">
   				<j:beads>
   					<j:StringValidator required="1"/>
   					<j:Disabled disabled="{ddlCustomerId.selectedItem == null}"/>
   				</j:beads>
   			</j:TextInput>
   		</j:FormItem>
   </j:Form>
   </j:VGroup>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services