The moose likes JSF and the fly likes Getting null value in managed bean when readonly=true is given for h:inputText Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Getting null value in managed bean when readonly=true is given for h:inputText" Watch "Getting null value in managed bean when readonly=true is given for h:inputText" New topic
Author

Getting null value in managed bean when readonly=true is given for h:inputText

Praveen Kusuma
Greenhorn

Joined: Aug 01, 2007
Posts: 3
Hi
When I am making <h:inputText> as readonly by giving readonly attribute as true, In Managed bean I am getting null value,I have also tried by making it as disable for this also it is giving as null.
How to overcome this, is there any other alternative?

Thanks in Advance
Praveen.
[ August 01, 2007: Message edited by: PRAVEEN KUSUMA ]
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
Adjust your setting so that it will not do an update when your receive null from the form or change your inputtext into an outputtext


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17234
    
    1

"Praveen",

Please edit your profile and correct your display name so that it is not all CAPS.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting null value in managed bean when readonly=true is given for h:inputText
 
Similar Threads
<h:inputText tag in JSF not updating the managed bean values when attribute is readonly=true.
Jsf Data table values are coming as null
h:inputText readonly="true" not updating managed bean values
Using object ArrayList in JSF
getting an unresolved error for some reason