• warning: Parameter 1 to tac_lite_node_grants() expected to be a reference, value given in /home/rbezemer/softwarebyrichard.com/includes/module.inc on line 483.
  • warning: Parameter 2 to gmap_gmap() expected to be a reference, value given in /home/rbezemer/softwarebyrichard.com/includes/module.inc on line 483.
  • warning: Parameter 1 to tac_lite_node_grants() expected to be a reference, value given in /home/rbezemer/softwarebyrichard.com/includes/module.inc on line 483.
  • warning: Parameter 1 to tac_lite_node_grants() expected to be a reference, value given in /home/rbezemer/softwarebyrichard.com/includes/module.inc on line 483.
  • warning: Parameter 1 to tac_lite_node_grants() expected to be a reference, value given in /home/rbezemer/softwarebyrichard.com/includes/module.inc on line 483.
  • warning: Parameter 1 to tac_lite_node_grants() expected to be a reference, value given in /home/rbezemer/softwarebyrichard.com/includes/module.inc on line 483.
  • warning: Parameter 1 to tac_lite_node_grants() expected to be a reference, value given in /home/rbezemer/softwarebyrichard.com/includes/module.inc on line 483.
  • warning: Parameter 1 to tac_lite_node_grants() expected to be a reference, value given in /home/rbezemer/softwarebyrichard.com/includes/module.inc on line 483.

Flex adding subelements as properties to a custom component

I was trying to extend a TextArea control, and all was working well untill I tried to use my class like the following:

  1. <widget:myhtmltextarea> <mx:htmltext> <!--[CDATA[
  2. <DIV STYLE="text-align:LEFT;"><SPAN STYLE="color:#7DB73F;font-size:20px;font-family:'Times New Roman';">Title Text</SPAN></DIV>
  3. ]]--></mx:htmltext> </widget:myhtmltextarea>

 

which of course resulted in the nice cryptic error message :

 Could not resolve <mx:htmltext> to a component implementation.

 

after searching I found this post which explained it all.

 

turns out you must declare the property as part of the same namespace so the correct syntax would have been :

  1. <widget:myhtmltextarea> <widget:htmltext> <!--[CDATA[
  2. <DIV STYLE="text-align:LEFT;"><SPAN STYLE="color:#7DB73F;font-size:20px;font-family:'Times New Roman';">Title Text</SPAN></DIV>
  3. ]]--></widget:htmltext> </widget:myhtmltextarea>

Trackback URL for this post:

http://softwarebyrichard.com/trackback/38
Your rating: None Average: 2.9 (30 votes)