Change value at different places and update

UI Components for JSF
Post Reply
propje
Posts: 4
Joined: 26 Jul 2010, 19:08

26 Jul 2010, 19:27

All,

I have the following problem. I want a value, that is stored in an application scoped managed bean, to be editable on a certain page. I also want that, when two users have the page opened, both can see and update the value. When one user updates the value, the other one should also see the updated value.

I have tried the <h:inputText value="appscope.value" id="pollValue"/> tag in combination with the <p:poll update="pollValue" interval="1"/> tag. This however does not work.

Is there an easy way to handle this?

Ideally I would like to see the value. When I click on it, I get a dialog box where I can input the value and save or cancel. This with only referencing to the application scoped bean.

I use glassfish v3, JSF 2 and primefaces 2.

Kind regards and thanks for the help!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

26 Jul 2010, 23:43

Ajax poll seems to be working at showcase;

http://www.primefaces.org:8080/prime-sh ... i/poll.jsf

Can you compare your code with that?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests