This document was generated from CDN thread
Created by: tejas varade on 11-05-2012 10:39:25 AM
Actually I am stuck on one point. I am trying to set the application data and then retrieve the same from a custom class. But I am getting a null pointer.
I am reading an XML file to set the application data. I have implemented the StartApplicationInterface in my class TestOnAppLoad. (public class TestOnAppLoad implements StartApplicationInterface)
Inside the onStartApplication method I am using the setApplicationData method to set the values read from the XML file to application data.
Now, in my other class TestCustomElementSetDataToSession I am extending from the ActionElementBase . (public class TestCustomElementSetDataToSession extends ActionElementBase)
And inside the doAction method I my reading the application data names. (String [] appDataNamesArray = aeData.getApplicationAPI().getApplicationDataNames();)
But I am getting a null pointer on the above line.
It would be really helpful if you could suggest something also if I could get some sample code to refer from.