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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:59:17+00:00 2026-06-15T23:59:17+00:00

I have a custom javascript Ajax call in my jsf page. I capture and

  • 0

I have a custom javascript Ajax call in my jsf page. I capture and process the query string of the XMLHttpRequest in a filter. The filter adds a record to a table in the model.
Now I want the jsf page, without full page refresh, to reflect the updated model in one of the components (a Primefaces data table).

I guess what I need is a custom xmlHttpResponse…

Can anyone tell me how to do this? I’m scared it might be complicated, but I have no choice but to use the custom javascript…

  • 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-15T23:59:17+00:00Added an answer on June 15, 2026 at 11:59 pm

    The PrimeFaces <p:remoteCommand> is designed for this purpose.

    Here’s a basic kickoff example for your particular case:

    <h:form>
        <p:remoteCommand name="updateTable" action="#{bean.updateTable}" 
            process="@this" update="table" />
        ...
        <p:dataTable id="table">...</p:dataTable>
    </h:form>
    

    It generates a JS function updateTable() which will invoke the #{bean.updateTable} method and update the component with (relative) client ID table. You just have to call the function updateTable() in JavaScript context.

    updateTable();
    

    You can even pass request parameters if necessary, it has to be sent as JS object:

    updateTable({ name1: "value1", name2: "value2 });
    

    No need to fiddle with homebrewed ajax requests and keeping the JSF state in sync.

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

Sidebar

Related Questions

I have my JavaScript alert on a page which alerts user with my custom
How one can reload the custom JavaScript file after an Ajax call is completed?
Alright so I have a custom page template designed with javascript and php (lets
We are using jQuery in our project. We have numerous custom javascript files in
Well, here is my problem: I have an application that uses a custom Javascript
I have a custom styled drop-down selection box created with CSS/Javascript, which is meant
I have been trying to make custom radio buttons using HTML, CSS, and JavaScript.
I have this code <html> <head> <script src=jquery-1.7.2.min.js type=text/javascript></script> <script src=jquery-ui-1.8.20.custom.min.js type=text/javascript></script> <script type
I have a link that looks like <a class=fancy href=/site/feedback>feedback</a> Ajax call: $('.fancy').fancybox({ wrapCSS:
I have a page where I can insert some javascript / jquery to manipulate

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.