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
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
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
MultiLevel Inheritance sample in Java
Archived Comments
1. I deploy a project in apache tomcat and backend to
View Tutorial By: satish at 2010-08-04 05:31:59
2. Can you give some examples of do while & pleas
View Tutorial By: mhilan at 2011-09-01 04:54:13
3. It would be nice to add the line,
View Tutorial By: Anonymous at 2009-08-30 07:59:10
4. pls can any one have any idea about storing the ca
View Tutorial By: souhir at 2010-01-30 11:04:48
5. How to display the ARP Mapping Table of a given ho
View Tutorial By: Hala at 2013-11-15 22:42:36
6. Thank you ... was very helpfull indeed !!
View Tutorial By: Avinav at 2011-02-09 15:46:37
7. really helpfull :) thanks
View Tutorial By: Jagan at 2014-12-09 10:16:56
8. Sometimes java do support operator overloading as
View Tutorial By: Gunjan Srivastava at 2011-07-06 09:14:00
9. good but i needed you to implenent linked list usi
View Tutorial By: emmanueli at 2011-06-08 10:08:16
10. thank you. its very useful :)
View Tutorial By: Farhanna at 2013-05-22 05:33:46