This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamically disabled field lost its content after submitting form

 
Piotr Siegfried
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm still quite new to JSF and right now I have the following problem:

I have a form with several fields, which I use for both registering new user and edit their personal data.
In case of edit, some fields shouldn't be editable (i.e. disabled=true) but their content which were input during registration should still be displayed.

For the editing, if the password to confirm the change is wrong, then the method (activated after a command button is pressed) will return an empty string (String nextPage = ""; ).
As far as I know, the same page should then be displayed once again (and I put some corresponding error message) and it really is. But the problem is that those disabled fields become empty, while others are still containing their text just like before.
How can I retain the content of the disabled fields?

Many thanks in advance!

regards
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"He Man",
Please check your private messages.
-DOM
 
Piotr Siegfried
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the name before
Anyone has any idea regarding my problem?
The main point is why the content of the disabled fields disappear after reloading the page while other available fields still have their content?
Does it have something to do with the disability?
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic