This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF components not working on popup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF components not working on popup" Watch "JSF components not working on popup" New topic
Author

JSF components not working on popup

Augustine Chelliah
Greenhorn

Joined: Mar 12, 2009
Posts: 28
Hello,

I need to open a pop-up window from a page. I used window.open in JavaScript and am calling that from an 'onclick' attribute of a command link. In the pup-op window, the JSF components are not getting rendered on the screen. But when I type some HTML content, it is displayed on the screen. Am using JSF 1.2 (facelets and xhtml).

Need Help.


Augustine J


Thanks & Regards,
Augustine
Augustine Chelliah
Greenhorn

Joined: Mar 12, 2009
Posts: 28
Can somebody help ?
Ajeeth Kumar
Ranch Hand

Joined: Mar 30, 2005
Posts: 56
Is the template of the pop-up based on the same template thats being used in the other pages?
Augustine Chelliah
Greenhorn

Joined: Mar 12, 2009
Posts: 28
Thanks for the reply Ajeeth. The popup window does not have the same template as in other pages. I just need to display data with some message.
Ajeeth Kumar
Ranch Hand

Joined: Mar 30, 2005
Posts: 56
I think that the jsf tags are not recognized in the pop up. Ensure that you have added the taglib references on the pop up page.
Remove all the other components and Try to add a simple outputText to confirm JSF is working .If it still doesnt work, please post the code and I shall try my best to resolve.
Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

Augustine - When did you migrate to facelets?? Have you enclosed all the jsf tags in the pop up in <f:view>. Hope you did not miss any basic thing..There are many pop-ups which are working fine right?
Augustine Chelliah
Greenhorn

Joined: Mar 12, 2009
Posts: 28
Got it. When we did a window.open, the file we mapped to was *.xhtml; when we changed this to *.jsf, it worked. In the web.xml, we had configured for the URL pattern *.jsf . We also had an entry for xhtml just that faces servlet was not called and hence no JSF components were displayed. So *.xhtml will work if it is forward from one page, but not during a window.open .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF components not working on popup