We use static constants for all these properties so we don't end up with simple
type Os
Example:
static public const PROP_APPLICATION_IS_READY:String = "applicationIsReady";
private var _applicationIsReady:Boolean;
+ setter/getter
And in the map
<mate:PropertyInjector
targetKey="{DvMainView.PROP_APPLICATION_IS_READY}" source="{AppState}"
sourceKey="{AppState.PROP_APPLICATION_IS_READY}"/>
Odd to see it trapping the type check on foo... but hope this helps.
Anthony
--- In [email protected], Richard Rodseth <rrods...@...> wrote:
>
> Any Mate users here? The forums are down again.
>
> I'm trying to use the newish CacheSetter tag, as follows:
>
> <CacheSetter cache="global" cacheKey="legacyModel" instance="{this.model}"/>
>
> Elsewhere:
>
> <PropertyInjector targetKey="foo" source="legacyModel" sourceKey="foo"/>
>
> This gives the error: "1069 Property foo not found on String"
>
> If I use the class name instead it complains because the class in
> question has constructor arguments.
>
> What's the correct approach here? Thanks.
>