Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

custom tab libraries doesn't work after upgrading JSFand facelets

843844May 10 2010 — edited May 13 2010
The custom tag libraries in my application are not working after I upgraded JSF and facelet versions in my development environment . I have custom taglibs defined in a taglib file and that file is added as value of a context param in web.xml. see below
<context-param>
<param-name>javax.faces.FACELETS_LIBRARIES</param-name>
<param-value>/META-INF/tags/wizard.taglib.xml;</param-value>
</context-param>
The file wizard.taglib.xml has custom tags defined as below.
<facelet-taglib>
<namespace>http://www.tolven.org/jsf/wizard</namespace>
<tag>
<tag-name>body</tag-name>
<source>wizard/body.xhtml</source>
</tag>
.......
and I have my .xhtml file using the taglibs
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:wiz="http://www.tolven.org/jsf/wizard">
<head>
    <title>New Wizard</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
      here is the content
    <ui:composition>
		<wiz:step title="Start">
...................
</wiz:step>
Old Environment
============
facelets-1.1.12
JSF1.2
JBoss 4GA

New Environment:
==============
facelets-1.1.15-jsf1.2.zip
Glassfish V3
JSF2.0

It was working fine until I ported code to glassfish which has upgraded version of JSF2 and facelets. Now I see the custom taglibs are displayed as it is in the HTML page. Any help fixing this will be appreciated. Thank you.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 10 2010
Added on May 10 2010
2 comments
1,190 views