• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF components not working on popup

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can somebody help ?
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 101
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
reply
    Bookmark Topic Watch Topic
  • New Topic