java - Ajax Facelets 支持的 "events"是什么?

标签 java jsf jsf-2 facelets

Ajax Facelets 标记中“事件”的可能值是什么?

我正在考虑 Ajax Facelets 标记内“event”属性的可能值是什么。我正在使用 JSF 2.0,当我转到 Facelets documentation 时我找不到这个信息。

我只知道 keyupkeydown 值:

<f:ajax event="keyup"/>
<f:ajax event="keydown"/>

可在 facelets 标记内使用的值的完整列表是什么?

最佳答案

从您向我们提供的确切链接:

If specified, it must be one of the events supported by the component the Ajax behavior is being applied to. For HTML components this would be the set of supported DOM events for the component, plus "action" for Faces ActionSource components and "valueChange" for Faces EditableValueHolder components. If not specified, the default event is determined for the component. The DOM event name is the actual DOM event name (for example: "click") as opposed to (for example: "onclick").

除了这个你还需要什么?

另请参阅:

private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(Arrays.asList("blur","change","valueChange","click","dblclick","focus","keydown","keypress","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","select"))

关于java - Ajax Facelets 支持的 "events"是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19383102/

相关文章:

java - 如何将 scala 类导入 IntelliJ IDEA

java - 如何在Java中循环遍历多个输入行

java - 使用 Selenium 和 Chrome 开发工具的浏览器内存泄漏自动化

JSF 托管 bean 命名约定

java - @SessionScoped的定义和实际意义

java - 你能在android studio中将蓝牙套接字从一个 Activity 转移到另一个 Activity 吗

css - 从 p :layout 中删除排水沟

AngularJS 表达式在带有 JSF 的 ng-src 中无法正常工作

jsp - 警告 : JSF1091: No mime type could be found for file/ny/home. jsp

java - 如何为编辑页面创建 validator