Hi,
I took up an example of making a discussion forum to get better at Web Dynpro. I am stuck at this one problem since almost a week...please help.
I have 4 custom controllers
1. login - for login
2. newthread - to start a new thread
3. mythreads - to view the threads he has posted
4. getthread - to get the entire thread
For which i have 4 views.
1. loginView
2. newThreadView
3. myThreadsView
4. showThread
Now for each custom controller I have initialized the "_input" objects and also any input node objects if it has.
The Problem :
After the login, I make a new thread in the newThreadView. the thread is posted and i can see it when in the myThreadsView. All my posts are displyed in a table in this view. Now if i wish to see the details of any particular post, i select its lead and click a button. The button action copies the issue-id of the thread selected to a model attribute which is context mapped to the issue-id of the getThread custom controller. Now I call the custom controller's method in which i execute the model object. Then i invalidate the output node. But this fails to get any values from it context and the getter for a return value wdContext.nodeOutput.getResult() throws a null pointer exception in the getThread custom controller.
Similarly if now if i rerun the application and first see any of my threads and then try to make a new thread post, again it gives me a null pointer exception in the newThread custom controller.
So at any given time, i either view my posts or make a new post, otherwise whatever i do second throws a null pointer exception.
Please help!!!
Add a comment