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. ahmm I guess This is a VB6 program? or how can I g
View Tutorial          By: kelvin at 2011-02-27 14:07:44

2. hi..i can send 4 or 5 sms per mnt..is there any wa
View Tutorial          By: rahul at 2011-02-11 00:17:51

3. Hello every one. I am working on my project in j2m
View Tutorial          By: Pradeep Reddy at 2011-01-04 05:15:51

4. EXACTLY COPIED BY "C PROGRAMMING" by DEN
View Tutorial          By: Aashish at 2012-06-06 17:56:36

5. If i jus wanna read the files in the phone , how s
View Tutorial          By: vt at 2010-01-28 02:50:26

6. very good for programing
View Tutorial          By: kiran at 2007-12-06 00:39:47

7. I don't get it... there seem to be only two differ
View Tutorial          By: bibiki at 2012-04-05 02:01:32

8. site is good.explaining the concept with nice pro
View Tutorial          By: AJOY KUMAR MANDAL at 2012-11-22 01:57:26

9. i am newly in java, i want to learn about this and
View Tutorial          By: gelen at 2010-11-23 02:57:15

10. What a wonderful site for beginners? Now I can pra
View Tutorial          By: Kafedha Rwezaula at 2010-06-03 04:39:59