This blog we
will see how to check the spelling in input text box in ADF.
In real life scenario, sometimes it is required to check the spelling while user is entering the text.The below code is required to check the spelling inside the input text box.
<af:resource type="javascript">
function checkSpell(event) {
event.getSource().getPeer().getDomElement().setAttribute('spellcheck','true');
}
</af:resource>
<af:form id="f1" binding="#{backingBeanScope.backing_BeanJavaScript.f1}">
<af:inputText label="Enter your text : " id="it1">
<af:clientListener method="checkSpell" type="focus"/>
</af:inputText>
</af:form>
Thanks...
Hi Prabhat,
ReplyDeleteHere, you are enabling the browsers SpellCheck. It works for Firefox and Chrome which has default Spellcheck. But can you please share how we can do the spellcheck for IE browser.
Thanks,
Bhanu