You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by struts lover <st...@yahoo.com> on 2005/10/06 21:10:15 UTC

Struts JSF integration problem

Hello Everyone,

I just downloaded the struts-faces nightly build and
tried to integrate in my existing struts application.

I get the following error. 

/virtual/addMember.jsp(10): Error in using tag library
uri='/WEB-INF/struts-faces.tld' prefix='s': The Tag
class 'org.apache.struts.faces.taglib.CommandLinkTag'
has no setter method corresponding to TLD declared
attribute 'actionListener', (JSP 1.1 spec, 5.4.1)
probably occurred due to an error in
/virtual/ForgotPassword.jsp line 10:
<%@ taglib prefix="s" uri="/WEB-INF/struts-faces.tld"
%> 

I will appreciate any help.

Thanks.


		
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: Struts JSF integration problem

Posted by Martin Gainty <mg...@hotmail.com>.
you need to associate your ActionListener with a button take a look at this 
jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<header...>
<body..>
<form..>
<h:command_button id="submit" action="success"
     label="Submit" commandName="submit" >
       <f:action_listener
         type="foo.bar.FlightSearchActionListener"/>
   </h:command_button>

HTH
Martin-
----- Original Message ----- 
From: "struts lover" <st...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Thursday, October 06, 2005 3:10 PM
Subject: Struts JSF integration problem


> Hello Everyone,
>
> I just downloaded the struts-faces nightly build and
> tried to integrate in my existing struts application.
>
> I get the following error.
>
> /virtual/addMember.jsp(10): Error in using tag library
> uri='/WEB-INF/struts-faces.tld' prefix='s': The Tag
> class 'org.apache.struts.faces.taglib.CommandLinkTag'
> has no setter method corresponding to TLD declared
> attribute 'actionListener', (JSP 1.1 spec, 5.4.1)
> probably occurred due to an error in
> /virtual/ForgotPassword.jsp line 10:
> <%@ taglib prefix="s" uri="/WEB-INF/struts-faces.tld"
> %>
>
> I will appreciate any help.
>
> Thanks.
>
>
>
> ---------------------------------
> Yahoo! for Good
> Click here to donate to the Hurricane Katrina relief effort. 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org