Comment on Tutorial - Action listeners in JSF By Charles



Comment Added by : Felipe

Comment Added at : 2010-02-18 05:03:51

Comment on Tutorial : Action listeners in JSF By Charles
hi,

i have a problem. I have the tipical common JSP page that is include by the rest JSP. This page is a filter page and that is include in the other pages with "jsp:include" tag. The filter page have buttons to search elements with the next date or the previous date, but must call diferent beans (each principal page have its own SearchBean) Each principal page, that includes the filter page, use "jsp:param" tag to indicate the actionListener that must be invoke. But when in the filter page i put "#{param.forwardActionListener}" in the "h:commandButton", i get an error when click.

Exemple:

test.jsp code

<jsp:include page="dateFilterPage.jsp" flush="true">
<jsp:param name="parentView" value="testSubview"/>
<jsp:param name="backAction" value="TestSimpleBean.action"/>
<jsp:param name="forwardAction" value="TestSimpleBean.action"/>
<jsp:param name="backActionListener" value="TestSimpleBean.backDate"/>
<jsp:param name="forwardActionListener" value="TestSimpleBean.forwardDate"/>
</jsp:include>

dateFilterPage.jsp code

<h:commandButton styleClass="esriToolDefault" id="FechaAdelanteBtn" value="forward date" action="#{param.forwardAction}" actionListener="#{param.forwardActionListener}"/>

The error is :

javax.faces.el.MethodNotFoundException: backActionListener: com.sun.faces.context.RequestParameterMap.backActionListener(javax.faces.event.ActionEvent)

How i can force to filter page to invoke the correct bean getter by param?

Thanks


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. My Page URL- http://localhost:8080/WebApplication1
View Tutorial          By: aMIT sURI at 2012-05-12 10:43:21

2. its very nice
View Tutorial          By: keerthi at 2012-06-28 17:04:36

3. i m a student of Bahria university,Pakistan.and th
View Tutorial          By: Rao Waseem at 2011-05-14 12:55:53

4. i get this error too.
: Parent: child proce

View Tutorial          By: Anon at 2009-02-25 08:30:58

5. Hi Jigar,
The above applicatio

View Tutorial          By: Kiran at 2011-12-26 04:00:24

6. The above example for abstract class is very good.
View Tutorial          By: saafia at 2013-08-19 14:33:54

7. this what i get on the servlet web page plz some o
View Tutorial          By: boney dsilva at 2012-09-19 15:37:09

8. Excellent Example to explain the functions
View Tutorial          By: manish at 2010-08-05 03:10:43

9. This example is working fine....I think BillGates
View Tutorial          By: Monoj Rath at 2010-07-15 01:27:51

10. Nice Intro to start J2Me
View Tutorial          By: Mak at 2009-07-04 10:36:00