I'm trying a very simple JSF application in JBOSS AS 6.1. My JSP file looks like this:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<h:commandButton id="refreshLink" value="Refresh">
The system keeps throwing out this error:
/main.jsp(62,4) No tag "ajax" defined in tag library imported with prefix "f"
Please help me. I'm stuck here for a couple of days already. thanks a lot.
Some thoughts that may help you
With jsf 2, the container is going to be looking for xhtml files by default. Did you change it to see jsp pages as well?
have a look at these pages
Also, are you sure you are using jsf 2 and not the jsf 1.1 library that does not suport f:ajax?
In your lib directory do you have the correct library?
Does your faces-config.xml file is configured properly for jsf 2?Do you have something like this at the faces-config.xml file?
Hope this helps
|Retrieving data ...|