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

  • Home
  • SEARCH
  • 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 8341591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:31:45+00:00 2026-06-09T05:31:45+00:00

(Using JEE6) Is it possible to have a webpage automatically update (or listen) to

  • 0

(Using JEE6) Is it possible to have a webpage automatically update (or listen) to values from within a bean/class and display them on the JSF when these changes happen?

  • 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-09T05:31:49+00:00Added an answer on June 9, 2026 at 5:31 am

    As KayKay mentioned you can implement some sort of polling methodology using javascript to ask the server periodically to send updates if there are any. And unless you use ajax you will have to be content with only complete page refreshes.

    JSF as good as it is, sits on top of basic stateless web technology. As such unless you use Ajax or some custom code the server will only respond to a request from the client. Some libraries like icefaces have incorporated a “push” component that allows what you are looking for (from what I understand, this is a fundamental part of icefaxes). That is, to push server side changes to the client.

    You have to set up a listener on your end so that your bean will be notified when a value change happens on the server (like in your backing bean which is on the server). When the change happens you can ask say, ‘icefaces push’ (or another library like primefaces, which you indicate you don’t want to use) to send a notice to the client. The client side code (usually ajax/javascript) will process the notice and then send a request for the whole object per normal request response. That is the notice tells the client something it’s interested in changed so the client can ask for an update. Aside from the notice, still request/response.

    I mention icefaces push because it seems to be the favoured library for this now. But others have this as well. I don’t believe the standard JSF 2.0 AJAX libraries have this.

    Here are a couple of resources to look at:

    (The video is a good start to get the idea of what is going on, then use the rest of the site)
    http://www.icesoft.org/demos/icepush-demos.jsf

    Older but I think still relevant IBM tutorial on what you want to do, using inventory changes as an example:

    http://www.ibm.com/developerworks/web/library/wa-aj-dynamic/index.html

    And another stack question related:

    Is there a better Ajax Push for JSF 2.0 than Icefaces

    Unfortunately it looks like you cannot do this with just JSF, you will have to use one of these libraries or even harder, roll your own push mechanism.

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

Sidebar

Related Questions

Using Java,I have to fetch multiple sets of values from an XML file to
I have created a Web service using Netbeans', JEE6 and Jersey - Webservice from
I have my system set up to compile jee6 code from the command line
Using MVVM. I have a DataTemplate which I am using to display an expander
I have successfully created Web Services from MySQL Database using Netbeans tutorial . However,
Using JQuery, how do I select all elements with class x within an element
I've written a JEE6 application using CDI and JPA. My tests are written in
Using import datetime in python, is it possible to take a formatted time/date string
I am using a JSF 2.0 to create a web app (purely jee6, without
I am using a JEE6 stack including JPA 2.0, JSF 2.0, EJB 3.1 etc.

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.