Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF components not working on popup

 
Augustine Chelliah
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Augustine Chelliah
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody help ?
 
Ajeeth Kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the template of the pop-up based on the same template thats being used in the other pages?
 
Augustine Chelliah
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
Flex Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic