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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:20:25+00:00 2026-06-15T20:20:25+00:00

I want to submit some value to server on some client side event which

  • 0

I want to submit some value to server on some client side event which i am not able to get with server side events.

(1) Primefaces.ab(formName,methodName,parameter)

Wanted to do something like above mentioned code. Actually i am trying to save Rows per page event in primefaces but following event:

do not returns current rows per page that’s why i am getting value with help of Jquery and css class of Row per page template and i need to submit that value to server side method.

Any help is appreciated.

  • 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-15T20:20:27+00:00Added an answer on June 15, 2026 at 8:20 pm

    For that, the <p:remoteCommand> component is intented. Basically, it allows you to let PrimeFaces generate a JS function reference with the desired function name which in turn invokes the desired backing bean action method.

    E.g.:

    <h:form>
        <p:remoteCommand name="functionName" action="#{bean.submit}" />
    </h:form>
    

    Which is then to be invoked as:

    <script>
        functionName();
    </script>
    

    You can use a JS object as argument in order to pass request parameters:

    <script>
        functionName({ paramName: "paramValue" });
    </script>
    

    Which is then available in action method as:

    String paramName = externalContext.getRequestParameterMap().get("paramName"); // Contains "paramValue".
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want as well as Client Side Validation as Server Side Validation. I realized
I have a DropDownList that fires off some server-side databinding in its OnSelectedIndexChanged event.
I want a scenario in which I will set some value of a hidden
I want to get some value from dropdown's selected index change and bind them
I found some things I want to submit a pull request for in the
I want to submit a form without page refresh using jQuery. I found some
I want to submit a form like this: <input type=button onclick=$('#form1').submit(); value=Create /> but
I have some checkboxlist like this: <asp:CheckBoxList ID=G1 runat=server> <asp:ListItem Value=Comunicações Unificadas Text=Comunicações Unificadas
I have some html content in a SQL Server column, I want to read
I create my first iphone app now i want submit this on appstore so

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.