Jsf 如何在p:InputExtArea Prime Faces中禁用拼写检查?

Jsf 如何在p:InputExtArea Prime Faces中禁用拼写检查?,jsf,jsf-2,primefaces,spell-checking,Jsf,Jsf 2,Primefaces,Spell Checking,我想停用Prime FacesInputExtArea中的拼写检查 spellcheck=“false”在p:InputExtArea中不可能 <p:inputTextarea value="#{mybean.cardescription}" cols="95" autoResize="true" rows="20"/> 使用以下命令: <h:head> <h:outputScript name="/j

我想停用Prime Faces
InputExtArea
中的拼写检查

spellcheck=“false”
p:InputExtArea中不可能

<p:inputTextarea value="#{mybean.cardescription}" 
        cols="95"
        autoResize="true"
        rows="20"/>

使用以下命令:

<h:head>
    <h:outputScript   name="/js/util/disableSpellCheck.js"/> 
</h:head>

在页面加载
$('inputTextId').attr('spellcheck','false')
上使用jQuery,或者您应该为inputTextarea编写自定义呈现程序。。另外,我不确定OmniFaces的功能是否适用于PrimeFaces输入区,但应该是。您好,谢谢您的回复。我不知道如何使用jQuery,请问我应该把代码放在哪里?在xhtml文档中还是在bean中?
$('inputTextId').attr('spellcheck','false')