This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Problem with editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with editor" Watch "Problem with editor" New topic
Author

Problem with editor

Tram mart
Greenhorn

Joined: Sep 20, 2011
Posts: 4
Hello everybody,

I am using Primefaces and I have a problem with the editor.
I show an editor initialized with a text, taken from the database. The user can edit this text, and after clicking the button, a mail is sent with this text.
But the saved text is always the old one, it is never updated.
I have seen that if I don't initialize the editor with a text, and I write something, it gets what I write. But it doesn't happen when the editor has a default value.




MyBean



Does anybody know how could I update the value? Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

While I am a little nervous that your initializer method has been coded with a "set"-style signature, what I'm actually suspecting is something different. What is the scope of this bean?


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Problem with editor
 
Similar Threads
JSF 2.0 Login
Strange ViewParams, GET Requests, AJAX behavior
How do you update / replace or re-render JSF components from a click on another component?
Making component rendered using <p:commnadButton> via ajax
Cant get my datatable to update [PRIMEFACES]