The problem is different. You can not have id of component matching to any
ComponentName.
In your case,
<infolib:viewPhones id="viewPhones" indi_id="1" />
viewPhones is Component class name and you are also assigning viewPhones as
id of this instance....
It is just like:
class Foo
{
}
var Foo = new Foo(); //error...
##Modified code##
<mx:Form width="100%" verticalGap="2">
<mx:FormItem label="Indi Id">
<mx:TextInput id="indi_id"
editable="false"
styleName="inputbox"
maxChars="10"
width="64"/>
</mx:FormItem>
<mx:Button label="Save"
click="saveIndividualEvent()"/>
</mx:Form>
<infolib:viewPhones id="viewPhonesInstance"
indi_id="{indi_id.text}" />
Hope that helps
-abdul
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 9:48 PM
To: [email protected]
Subject: Re: [flexcoders] Error: The property being referenced does not have
the static attribute.
It looks that if I substitute the binding with a
static value it works...
This doesn't work:
<infolib:viewPhones id="viewPhones"
indi_id="{indi_id.text}" />
Error: The property being referenced does not have the
static attribute.
This works:
<infolib:viewPhones id="viewPhones" indi_id="1" />
What am I missing?
Thanks,
Valy
--- Valy Sivec <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a view container that includes a form and a
> sub-view - called viewPhones. I would like to pass
> the
> indi_id form element value from the parent to the
> "viewPhones", but I got an error, see below, and
> can't
> figure out why.... Any help would be appreciated.
>
> Thanks,
> Valy
>
>
>
> <mx:Form width="100%" verticalGap="2">
>
> <mx:FormItem label="Indi Id">
> <mx:TextInput id="indi_id"
> editable="false"
> styleName="inputbox"
> maxChars="10"
> width="64"/>
> </mx:FormItem>
>
> <mx:Button label="Save"
> click="saveIndividualEvent()"/>
> </mx:Form>
>
> <infolib:viewPhones id="viewPhones"
> indi_id="{indi_id.text}" />
>
> The property being referenced does not have the
> static
> attribute.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs
Yahoo! Groups Links
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/