It makes it a lot easier if you post up some code, but I think I get it. You display a popup menu,
select an option which navigates to a target page. The target page knows which option was
selected.
I think I originally got this code from the Core
JSF 3 book, with a bit of help from BalusC
http://balusc.blogspot.com/2006/06/communication-in-jsf.html.
I think the easiest way to do it is with URL parameters so that you don't require a hidden
input field. As a starting point you have a commandButton (you use a commandLink with a
right click but ignore that):
main.xhtml
showMenu.js
menuContents.xhtml
Then you need to be able to access the parameters in the page. There is an implicit object "param" for
this purpose:
editPage.xhtml
You can access the parameter from the editPage backing bean also:
EditPageBackingBean.java
There are some significant limitations of this simple example, whilst menuContents is passing
parameters to editPage it's all static data. You can pass parameters to menuContents.xhtml like
this:
main.xhtml (changes)
showMenu.js (changes)
I hope this is going to be of some help.
Brendan.