简体   繁体   English

使TextArea Wicket不可编辑

[英]Make TextArea Wicket non-editable

I need to make TextArea Wicket read-only. 我需要将TextArea Wicket设为只读。 Is it possible to do this? 是否有可能做到这一点?

Why not just output the readonly attribute in the <textarea> , like in this fiddle ? 为什么不像这个小提琴一样只在<textarea>输出readonly属性?

If you need to do this inconditionally, just type it in your HTML, if it is conditional, add a SimpleAttributeModifier to the TextArea . 如果需要有条件地执行此操作,只需在HTML中键入它,如果有条件,则将SimpleAttributeModifier添加到TextArea

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM