I need to make TextArea Wicket read-only. Is it possible to do this?
Asked
Active
Viewed 2,683 times
2 Answers
3
Why not just output the readonly
attribute in the <textarea>
, like in this fiddle?
If you need to do this inconditionally, just type it in your HTML, if it is conditional, add a SimpleAttributeModifier
to the TextArea
.

Xavi López
- 27,550
- 11
- 97
- 161
2

Snap
- 21
- 2
-
it does work but the textarea has been grayed out. How can we make the text clearer? – Best Jan 09 '12 at 13:49
-
@Best you can style it with CSS, see http://stackoverflow.com/questions/5485642/how-do-you-style-disabled-textarea-in-ie8 – Sam Hasler Jan 09 '12 at 20:56