A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
TextField Readonly issue
Joined: Jul 17, 2006
Dec 28, 2007 05:54:00
When the form is submitted ,the value of the text field is passed as null
but not the value
could any one help me how to sort out this issue
Thanks in advance
Joined: Dec 11, 2004
Dec 28, 2007 06:24:00
This question isn't making a lot of sense.
If you're having trouble with English, posting the relevant parts of your code would be a big help.
How to ask a question...
Simple Servlet Examples
Joined: Nov 06, 2000
Dec 28, 2007 12:37:00
There is a difference between READONLY and DISABLED (Google for more info on it). Which one are you using? Probably the latter. A disabled field is not sent when the form is submitted.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: Sep 14, 2005
Dec 29, 2007 04:33:00
If the field is disabled, what you can do is create an extra hidden field and store the value in the hidden field as well. You can then read it from the ActionForm.
subject: TextField Readonly issue
how to make select list uneditable
generate table fields by clicking an option!!!
JSF input text readonly issue
<h:inputText tag in JSF not updating the managed bean values when attribute is readonly=true.
how to get the value from the readonly field?????
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014