Explanation:
I have a JSF command link that sets a member in the backing bean, however, when setting the backing bean member using setPropertyActionListener I get a tag not recognized error.
The project builds and deploys with no issues. The default page is displayed then the error is thrown on the page request with the setPropertyActionListener.
Other coworkers are able to run the application fine using the same setup. I am guessing I am missing a library or there is a permission issue on some directory or file.
Setup:
Code:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/template.xhtml">
<ui:define name="body">
<h:commandLink value="view" action="viewer">
<f:setPropertyActionListener target="#{ViewerBean.ticket_id}" value="#{ticket.ticket_id}" />
</h:commandLink>
</ui:define>
</ui:composition>
</html>
Stacktrace: complete trace
javax.servlet.ServletException: /portal/index.xhtml @65,125 Tag Library supports namespace: http://java.sun.com/jsf/core , but no tag was defined for name: setPropertyActionListener
com.sun.facelets.tag.TagException: /portal/index.xhtml @65,125 Tag Library supports namespace: http://java.sun.com/jsf/core , but no tag was defined for name: setPropertyActionListener
Libraries in Apache:
Libraries in Project:
You do not precise which version of JSF you are using in your project.
Indeed, the setPropertyActionListener tag has been included in JSF 1.2 and is not available for a JSF 1.1 project.
That may explain the problem you encounter...
[Edit]
This issue has resurfaced, however, I think I have found a solution. I think something was wrong with my jsf-facelets.jar file.
I downloaded the newest version and added it to the project. Everything seems to be super now.
2010.01.26
I could not verify what the exact conflict was so I did a fresh install.
I am on an Ubuntu box running Netbeans 6.7, which was manually installed from the Netbeans website. Apache Tomcat was installed with the IDE.
First I removed the visible directories of both Netbeans and Tomcat. I actually moved them to the Trash just in case some went horribly wrong.
$ mv /home/bbryan/apps/netbeans6.7 /home/bbryan/.local/share/Trash
$ mv /home/bbryan/apps/apache-tomcat-6.0.18 /home/bbryan/.local/share/Trash
After these two directories were removed I removed the hidden netbeans directory. This is important; if you don't the next install of netbeans and tomcat will have all the same settings as before both good and bad.
$ mv /home/bbryan/.netbeans /home/bbryan/.local/share/Trash
Once all three directories were removed I did a fresh install and made a few minor adjustments for our local setup and BINGO.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.