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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. Hi,
I'm having a problem with the above cod
View Tutorial By: sushanth at 2015-05-04 07:32:17
2. I want full information about Java & Data Stru
View Tutorial By: s.karthick at 2015-05-07 05:32:24
3. Hi Gaurav, The sample in this tutorial is just a c
View Tutorial By: Ramlak at 2009-01-28 20:00:08
4. hey good code woww. this code lot of help me much
View Tutorial By: vaibhav malpani at 2015-03-25 05:48:50
5. Nice code easily understand the code and useful
View Tutorial By: satish at 2010-01-22 06:30:22
6. It is really a nice example when you need to sort
View Tutorial By: Ranjan at 2010-10-04 23:14:33
7. Dear any buddy i use Nokia N73 and connect with Bl
View Tutorial By: zstranger at 2012-03-29 07:43:12
8. Excellent explanation. How can I take input from t
View Tutorial By: Joe at 2013-03-31 11:02:28
9. plz can u give me code for database connectivity f
View Tutorial By: nilam at 2012-03-15 12:54:07
10. Hey,
The above tutorial is for SQL server,<
View Tutorial By: Anil at 2012-02-07 15:58:06