Hi,
I have got a stateful page.I can go to this page via 2 ways. One by clicking on a button another page and second by clicking on a popup menuItem present in another page. Now I want the onCreate event to be fired every time I come from the popupMenuItem present.But as it is a stateful page it goes to onInitialisation.How do I overcome this problem?
In the popup MenuItem I call the page in the following way:
<phtmlb:popupMenuItem menuItemId = "popmi1"
text = "Create program"
linkTarget = "main"
enabled = "TRUE"
linkReference = "program.htm"
checked = "TRUE"
/>
program.htm is a stateful page.
Regards
Tejaswini
I have some initial values which should appear only the first time the page is loaded. After that what the user inputs should appear. That is why I have initial values in onCreate and user-input values in onInitialization/
Regards
Tejaswini
Hi, Tejaswini.
Why do you need the popup menuItem to fire the onCreate event? Can't you move the code to the onInitialisation event? I think the onCreate event should be fired only once per session, and it seems you will show your "program.htm" more than once, so the code invoking it would be better placed in the other event.
Add a comment