Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf h:具有动态大小的输入区域_Jsf - Fatal编程技术网

Jsf h:具有动态大小的输入区域

Jsf h:具有动态大小的输入区域,jsf,Jsf,我正在使用一个按钮来显示一些文本。有没有办法更改行以调整文本的大小 <h:inputTextarea rows="2" cols="100" readonly="true" style="width:400px; border-style:none; background: transparent;" onkeypress="limitTextArea(t

我正在使用一个按钮来显示一些文本。有没有办法更改行以调整文本的大小

<h:inputTextarea rows="2"
                 cols="100"
                 readonly="true"
                 style="width:400px; border-style:none; background: transparent;"
                 onkeypress="limitTextArea(this, 'txtObsDoc', 4000);"
                 onkeyup="limitTextArea(this, 'txtObsDoc', 4000);"
                 onblur="limitTextArea(this, 'txtObsDoc', 4000);"
                 value="#{content}"
                 rendered="#{applicationBean.configuracaoDocflow.habilitarTextArea}">
</h:inputTextarea>

你的意思是说,当输入或删除某些文本时,文本中的行数会分别增加或减少,因此应该自动扩展或缩小吗?是的,类似的,现在我们只是将其用作输出,但文本的大小可以是从短语到大文本的任何内容。文本将来自已设置的bean,并且在设置之后不会更改。可能重复