What is the resizing option for inputTextarea component in JSF

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 12:38:10

问题


I am using JSF2.0 and I have an inputTextArea component and want to prevent the enduser from resizing it.How can I do it.I tried resize="false" but it is not accepting.


回答1:


This is to be achieved using the CSS resize property which needs to be set to none.

E.g.

<h:inputTextarea ... style="resize: none" />

or, better,

<h:inputTextarea ... styleClass="unresizable" />

with this in a fullworthy CSS file

.unresizable {
    resize: none;
}

The same story applies to the PrimeFaces equivalent <p:inputTextarea>. You wasn't exactly clear on which one you were using. Your question title and body implied standard JSF, but you tagged PrimeFaces.



来源:https://stackoverflow.com/questions/16104720/what-is-the-resizing-option-for-inputtextarea-component-in-jsf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!