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 7196191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:43:49+00:00 2026-05-28T20:43:49+00:00

In my JSF 2.0 (on JBoss AS 7 ) project, I would like on

  • 0

In my JSF 2.0 (on JBoss AS 7) project, I would like on my ajax submitted forms to display a little icon status triggered on begin and complete phases, to let the end user know that something is still happening.

The primefaces p:ajaxStatus is not useful here, as I’d like to have many different icons at different places in my page.

I found a bit of the solution in this question: “How show different ajax status in same input?“, but I still have a problem: in order to make my javascript function reusable, I need to provide an extra parameter to the call.

I did something like this:

<h:commandLink value="do something boy!">
    <f:ajax render="@form" execute="@form" listener="#{myBean.doStuff}"
        onevent="showProgress" />
    <f:param name="extraParam" value="extraValue" />
</h:commandLink>

and I can see the parameter “extraParam” sent to the server through the request, but in my javascript showProgress method I cannot recover it through the only given parameter.

So my questions is: can I provide to my f:ajax onevent javascript method an additionnal parameter through f:param (or maybe f:attribute, or anything else)?

  • 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-05-28T20:43:50+00:00Added an answer on May 28, 2026 at 8:43 pm

    Wrap it in an anonymous function wherein you pass it as extra argument.

    <h:commandLink value="do something boy!">
        <f:ajax render="@form" execute="@form" listener="#{myBean.doStuff}"
            onevent="function(data) { showProgress(data, 'extraValue') }" />
    </h:commandLink>
    

    with

    function showProgress(data, extraParam) {
        // Use "data" argument the usual way.
        // The "extraParam" argument will contain "extraValue" in above example.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added the spring and jboss repositories to my pom.xml like below: <project xmlns=http://maven.apache.org/POM/4.0.0
I'm working on a project using JBoss 6.1.0.Final, JSF 2.0.3, EJB3 and JPA 2
Is there any documentation about introducing jBoss seam to an old Hibernate/JSF project? Have
I'm working on a JSF project.Our development based on MySql 5.1, JBoss 4.22GA and
JBoss JSF page cache doesn't always seem to be updated when I change my
I have a application that runs very well on JBoss using JSF 2. I
I try to run jsf application in myeclipse using jboss web server and following
We have a JSF 1.2 application with RichFaces 3.3.3 on JBoss 5.1. When we
I am trying to deploy a JSF (Primefaces) application in JBOSS 7.1.0. I am
jboss-as-7.1.1, dynamic web module 3.0, JSF 2.0 (Mojarra), Eclipse Indigo sr2 I have an

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.