Unfortunately you cannot bind into styles in Flex 1.5.  This is because styles are set using the setStyle methodand binding requires the set to be done using the = operator.  We’ll hopefully address this in the next version.

 

I don’t think having the MXML generated all the time is a great idea, but if may be if you have a limited# of variations of inputs you could use the JSP tag library to generate a limited number of versions that could then be cached and delivered appropriately.  The JSP tag library does work in CF.

 

Matt

 


From: deptquote [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 24,2005 7:08 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] Binding attributes in Flex

 


Is there a way to bind a value of the attributes

Those one are not working:
    <mx:NumberValidator field="valeur.nombre"
     listener="chiffre" maxValue="{allo.enveloppe.valeur}"/>

    <mx:Label text="First Name" color="{envelope.text}"/>

This one is working:
    <mx:Label text="Maximum: {envelope.value}"/>

Our idea is to bind all data (labels,TextInputs, etc) to a XML file
containing all the information (validation, style, etc) about those
data.

or would it preferable to use ColdFusion to generate MXML files on
the fly for such task?

Thanks





Reply via email to