html - Struts2 Textarea Resize -
basically i'm trying 'hide' resize handle on struts2 textarea. attempt @ had , unexpected result. code told overflow in x & y direction scrollbar told resize 'none'
i expected resize handle disappear did overflow wrapping down next line instead of scrolling.
<s:textarea name="newsstring" cols="65" rows="17" style="overflow: scroll; resize: none;"></s:textarea>
so how should go hiding resize handle , still having scroll? if @ possible.
in struts2 tags, class
, style
attributes named cssclass
, cssstyle
.
this work:
<s:textarea name="newsstring" cols="65" rows="17" cssstyle="overflow: scroll; resize: none;" />
the fact wasn't getting compilation errors due inexistent attribute, because <s:textarea>
tag (like <s:file>
tag , maybe others), has
dynamic attributes allowed: true
(as specified in official documentation), means write (that not valid struts2 attribute) reported in html without parsing (so when, example, css3-4
, html5
specifics introduces new features, there no need alter tag stay date, let's think multiple="multiple" attribute in <s:file />
...)
Comments
Post a Comment