Application Express 20.2.0.00.20
WHAT AM I TRYING TO DO:
created a wizard that takes user input over first two pages.
On the third page of wizard, I have created a dynamic action that is triggered on "Page Load".
This dynamic action is a javascript code. In the javascript code I am trying to show page success message:
apex.message.showPageSuccess($v("P3_ITEM"));
But the message is shown with null value.
The session state of page item has the value set as I can see in the window that opens up on clicking 'Session' at the bottom of page.

In browser console, apex.item("P3_ITEM").getValue()
also returns empty string ""
I am not able to figure out what is wrong. The item value is set i can see in Session State pop up window but not being able to read on the application page.