Reputation: 385
In my struts 1.2 application i have some fileds in text box which is in readOnly= "true" always. I will populate all the values with out any problem, but the problem is when i click on the text box the cursor is blinking on it when i try to hit backspace button it goes to my previous page end up with session expired error on the previous action.
also some scenario I am populating the text box value and i am making that text box to readOnly = "false" allowed user to end some value here when they press backspace to remove the values which is there already it goes to previous page.
Please help to avoid this situation.
Thanks in advance!
Upvotes: 0
Views: 2270
Reputation: 5269
Use disabled
rather than readonly
. Disabled elements cannot be focused, so no confusing blinking cursors.
<textarea disabled="disabled">content</textarea>
Upvotes: 1