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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:23:31+00:00 2026-05-27T04:23:31+00:00

I am working on a simple messenger using JSF and PrimeFaces. I would like

  • 0

I am working on a simple messenger using JSF and PrimeFaces. I would like to have contact list in the right part of the window and multiple conversation dialogs in the second part. Dialog will contain just a send button, an input and conversation content.

Use case:

User #1 clicks on contact, chat dialog appears. User #2 is logging to system. System checks that he has 1 unread message so it opens chat dialog. User #2 clicks on another contact and second chat dialog appears.

Questions:

  1. How to pass some context to dialog like user-you-are-writing-to’s ID so when you click on send button in this particular dialog you will be able to access it?
  2. Is it possible to create a PrimeFaces dialog dynamically from JavaScript> Or maybe there is better solution to do it?
  • 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-27T04:23:32+00:00Added an answer on May 27, 2026 at 4:23 am

    To create a chat application you have to use a Push Server (and WebSockets) which would be the best solution because you have to create a channel between the user/client and the server (since a simple request is stateless) – and that’s what push does. PrimeFaces Push uses a servlet as a dispatcher. This servlet should be in a different application than the JSF application and at the moment can only be deployed on jetty server.

    You could read about this in Primefaces UserGuide 3.0.M4: http://www.primefaces.org/documentation.html
    and see this implementation in showcase: http://www.primefaces.org/showcase-labs/push/chat.jsf

    Another implementation/example: http://java.dzone.com/articles/creating-websocket-chat

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

Sidebar

Related Questions

I'm working on a simple JavaScript based game using the canvas tag. As part
I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display
I'm working on a simple javascript login for a site, and have come up
I have a simple working PHP script to write an HTML table from a
I am working on simple form to validate fields like this one. public class
I'm new to Objective-C and I have been working with simple programs, and I
I have a simple 'Working' form that runs on its own thread to keep
Can anybody show me simple working example using Qt(export DLL plugin file) and make
I have paperclip in Rails (3) working with simple cropping, for example the blow
I had a simple working (ASP.NET) Scenario here: 3 asp:RadioButtons that each have OnCheckedChanged

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.