Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8310625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:31:37+00:00 2026-06-08T19:31:37+00:00

Recently I’ve been trying to upgrade this application that I’m working on from JSF

  • 0

Recently I’ve been trying to upgrade this application that I’m working on from JSF 1.2 to JSF 2, and during the process I’ve hit a wall, as you might already know AjaxBehaviorEvent is all new to JSF, and back in JSF 1.2 and using RichFaces 3 I was able to do the following:

Have a single method’s signature in the backing bean

public void onSomeEvent(ActionEvent evt){
    //Process the event
}

and I could call this method in the following two locations as follows
1-

<h:commandButton actionListener="#{bean.onSomeEvent}" value="Process Event"/>

2-

<h:commandButton value="Process Event" >
    <a4j:support event="oncomplete" actionListener="#{bean.onSomeEvent}" />
</h:commandButton>

Now in JSF 2 there’s two types of events the old ActionEvent and the new AjaxBehaviorEvent and neither seems to work interchangeably with the other, I mean if I’m to use the method with f:ajax then it needs to have AjaxBehaviorEvent in its arguments list, and if I’m to use it with ordinary DHTML events of the components then it needs to have an ActionEvent in the arguments list.

I was wondering if there’s some way to use for instance do what I used to do in JSF 2 with both types of events.

Thank you all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:31:40+00:00Added an answer on June 8, 2026 at 7:31 pm

    I did manage to overcome this issue by using EL 2.2 as suggested by @maple_shaft, what I did is that I removed the ActionEvent arguments from the methods where I had had no use of it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

recently I have been trying to add a link that allows people to delete
recently, while working on a db2 -> oracle migration project, we came across this
Recently I've been doing quite the project mostly working with the DateTime class. Now,..
Recently moved from svn to git, pardon my newbie question. In our release process,
Recently in a project, I had a multiprocessing Process that crashed. A child process
Recently I have been told that static class/methods are evil. Take for example my
Recently I found about this tool easy_install that help me to easy install additional
Recently I ran into this error in my web application: java.lang.OutOfMemoryError: PermGen space It's
Recently there was some upgrade happened from frame work 2.0 to 4.0, so after
Recently, I've discovered with the help of Jon Clements in this thread that the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.