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. can any body explain me how to execute the program
View Tutorial By: nikhil at 2009-06-04 23:56:11
2. Thx for the explanation, I understand what recursi
View Tutorial By: Tina at 2008-12-15 16:39:27
3. i found this tutorial very useful... i need to kno
View Tutorial By: Anonymous at 2009-04-14 21:09:20
4. Very new to Java and was hoping you could explain
View Tutorial By: Confused at 2011-08-16 14:02:06
5. thanks
View Tutorial By: snooker at 2013-02-04 19:45:40
6. javax.comm.NoSuchPortException
at javax.co
View Tutorial By: agnas at 2008-04-29 16:26:41
7. keep it up!
View Tutorial By: kamran at 2010-04-13 07:01:26
8. thank for your article it helps us to our studies
View Tutorial By: shane at 2010-07-21 19:12:22
9. Hi! Thanks for the examples posted here...it reall
View Tutorial By: creece at 2009-01-23 17:28:33
10. works like a charm, though i didn't understand why
View Tutorial By: primus at 2010-05-19 04:46:18