Announcement Announcement Module
No announcement yet.
Cannot get [Property] tag to work in SAS 1.1 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot get [Property] tag to work in SAS 1.1

    Hello all!

    I am using SAS 1.1. with Flex 4 (Hero SDK) and I am trying to make this piece of code work:

    	public class Resources
    		public var url_icons:String;
    		public var iblort:Iblort;
    All the time, I get the same error (well, the error is slightly different for the [Autowired(externalProperty="IconsUrl")] tag, but I believe the cause is the same) - Cannot resolve Placeholder "${IconsUrl}".

    I am starting to get nuts, because:

    a) The component scanner should work OK. The class iblort is autowired correctly

    b) The property ${IconsUrl} gets loaded correctly and works inside appContext.xml file !

    c) I downloaded the spring sources. I found, that the Properties object indeed gets filled with correct property data (lenght == 13). Bud somehow, when the class gets scanned, then the variable contains totally different Properties object (lenght == 0, id of the object is DIFFERENT than the one that gets created from the properties file).

    override public function scan(className:String):void {
    			_resolver = new PropertyPlaceholderResolver(); =;
    "" contains 0 properties (is not null, but empty).

    Am I doing something wrong? At which point is the Properties instance (that gets created from the external props file) assignet to ( ?

    Thanks for any response!
    Jan Pra×ma

  • #2

    Hey there Jan,

    this is quite certainly a bug. The class scanner is trying to resolve properties *before* the external property file has been loaded. This will need to be changed.
    Can you please file a bug report in JIRA for this?

    We'll try and get it sorted as soon as possible, but since all the work on the framework is done in our spare time we can't guarantee when exactly that will happen (don't worry, it usually doesn't take weeks).




    • #3
      Thanks a lot! I will report the issue ...

      Jan Pra×ma