• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use custom JSP tags in any JSF web application

 
Anna
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Frameworks forum.
 
Kito Mann
author
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • 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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic