• 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

How to use custom JSP tags in any JSF web application

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am unable to integrate some of my custom tags developed in the Jsp with a web application being developed in jsf. I am very new to jsf framework. Whenever i try to view the jsp files there is an error of unable to locate the faces context. but if the .faces file are run there is no display of the custom jsp tags though the application works perfectly. I need the solution very urgently. Somebody who can help me out. please


Anna
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the Frameworks forum.
 
author
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anna,

Are you sure your custom tag library is setup properly? Try creating a page in the same web application that uses your custom tags without JSF tags. Execute it normally (without the ".faces" extension) and see if your tags work properly.

Let me know how that works out, and we can go from there...
 
Anna
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ya

thanks for the reply. I had tested them and they are working absolutely fine with the .jsp extension. But with .faces they are all gone. If i try with jsf as well as custom jsp tags with jsp then faces context not initialized error is thrown.

Anna
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Anna Univ:
Ya
thanks for the reply. I had tested them and they are working absolutely fine with the .jsp extension. But with .faces they are all gone. If i try with jsf as well as custom jsp tags with jsp then faces context not initialized error is thrown.
Anna


Hi VikramVishal (anna univ),
Could you please change your display name according to our simple
naming policy, your name doesnt sound like real name. Fictitious names will not be considered for price win.
 
Kito Mann
author
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anna,

Then I suspect that your tags aren't working well with JSF, which can happen, especially if they do some sort of iteration. Can you show us the source to one of these pages? You may need to nest your tags within a JSF <f:verbatim> tag...
 
I AM MIGHTY! Especially when I hold this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic