Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

h:commandLink issue  RSS feed

 
Richard Roszak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!