Question

I'm having a problem with xe:objectData and global variables. Not sure if this is a bug or working as designed. The sample is a dumb one, I know. It's just meant to demonstrate the issue.

  1. works as expected
  2. throws exception. I have seen the same behaviour, when I try to use scoped variables in xe:objectData. Always a null is returned, although the variables contain values.

Anyone to shed a light on this?

enter image description here

Was it helpful?

Solution

I believe you can not use bundle resources at that time because of timing of when things occur in the lifecycle. When the objectData's create object method is called, other objects may not yet be created yet. You may have to manually load the bundle and retrieve the property you need.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top