在特定 Vaadin 字段上禁用 Web 浏览器的拼写检查功能
Disable the web browser’s spell check feature on specific Vaadin fields
许多现代网络浏览器都有拼写检查自动更正功能,可以更改字段的文本值。
对于某些字段,例如"User Name"或"Product Code",这不是很好。
没有。
没有。 Vaadin 7.4 及更早版本尚无法以编程方式禁用 Web 浏览器的 auto-correct spell-check feature on a Vaadin field.
功能请求
Ticket # 15186 已开放供 Vaadin 7 请求 "Add the ability to turn on/off spellcheck for text editable components"。截至 2015 年 3 月,此票正在审核中。
解决方法
作为解决方法,请参阅 this forum posting 了解创建自定义组件的可能性。
可以使用 Michael Vogt 的出色 Attributes 附加组件将拼写检查属性注入任何 Vaadin 组件。用法:
Attribute attribute = new Attribute("spellcheck", "false");
attribute.extend(myTextField);
许多现代网络浏览器都有拼写检查自动更正功能,可以更改字段的文本值。
对于某些字段,例如"User Name"或"Product Code",这不是很好。
没有。
没有。 Vaadin 7.4 及更早版本尚无法以编程方式禁用 Web 浏览器的 auto-correct spell-check feature on a Vaadin field.
功能请求
Ticket # 15186 已开放供 Vaadin 7 请求 "Add the ability to turn on/off spellcheck for text editable components"。截至 2015 年 3 月,此票正在审核中。
解决方法
作为解决方法,请参阅 this forum posting 了解创建自定义组件的可能性。
可以使用 Michael Vogt 的出色 Attributes 附加组件将拼写检查属性注入任何 Vaadin 组件。用法:
Attribute attribute = new Attribute("spellcheck", "false");
attribute.extend(myTextField);