my dog learned polymorphism*
The moose likes Struts and the fly likes How to use custom JSP tags in any JSF web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to use custom JSP tags in any JSF web application" Watch "How to use custom JSP tags in any JSF web application" New topic
Author

How to use custom JSP tags in any JSF web application

Anna
Greenhorn

Joined: Aug 27, 2004
Posts: 22
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


If you understand something try explaning it to ur granma
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Moving to the Frameworks forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kito Mann
author
Ranch Hand

Joined: Dec 11, 2003
Posts: 115
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...


Kito D. Mann
Author of JSF in Actionwww.JSFCentral.com - JSF FAQ, news, and info
Anna
Greenhorn

Joined: Aug 27, 2004
Posts: 22
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

Joined: Jul 13, 2001
Posts: 3150
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.


Spritle Software Blogs
Kito Mann
author
Ranch Hand

Joined: Dec 11, 2003
Posts: 115
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use custom JSP tags in any JSF web application
 
Similar Threads
How to code business logic in JSF
How to use custom JSP tags in any JSF web application
Simple JSF applicaiton - Error
Architecture question with JSF
which framework is best for me?