I'm having an issue it opening a popup using h:commandLink. The first time I clink on the commandLink the browser creates the popup goes out to the server to my MyBean.generatePdf method and creates the pdf in the popup. If I don't manually close the popup and click on the link again the main browser gets replicated in the popup.
Here is the jsp code:
I followed it in debugger on server and I see the first time it directly goes into my MyBean.generatePdf method but the second click only takes me into the getter for MyBean.generate and just returns.
Another thing I found is that if I try a third click it works correctly as it did the first time. Why wouldn't it see the action correctly the second time in?