Skip to main content

Problems When adding jsf taglib

1 reply [Last post]
perrito666
Offline
Joined: 2006-08-20

Hi.

I'm developing an application with this configuration:

Jboss 4.2.2 GA
Tiles 2
Mojarra-1.2_09-b02-FCS

When I try to add the taglibs like this:

<%@ taglib uri="/WEB-INF/html_basic" prefix="h"%>
<%@ taglib uri="/WEB-INF/jsf_core" prefix="f"%>

I got no render; viewing the source code, only render the tag. But if I try deleting the taglib reference, try to renders but throw an exception:

org.apache.jasper.JasperException: /test/test.jsp(6,34) #{..} is not allowed in template text.

Obviously because can't recognize the tags.

Pleas help. I'm very frustrated with this !!!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rlubke
Offline
Joined: 2003-08-21

The taglib imports should be:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>