`

JBoss Seam的事件机制 (1) 内置的上下文事件

    博客分类:
  • Seam
阅读更多
在JBoss Seam的事件机制(1)概述中我们提到Seam提供了内置的上下文事件,我们可以为每个事件定制自己的监听器:
关于验证的事件

org.jboss.seam.validationFailed, 当JSF验证失败的时候被调用

关于变量的事件

org.jboss.seam.preSetVariable.<name>
org.jboss.seam.postSetVariable.<name>
org.jboss.seam.preRemoveVariable.<name>
org.jboss.seam.postRemoveVariable.<name>

关于上下文的事件

org.jboss.seam.preDestroyContext.<SCOPE>
org.jboss.seam.postDestroyContext.<SCOPE>

关于对话的事件

org.jboss.seam.beginConversation
org.jboss.seam.noConversation,当需要长时间运行的对话,缺没有的时候被调用
org.jboss.seam.endConversation

关于页面流的事件

org.jboss.seam.beginPageflow.<name>
org.jboss.seam.endPageflow.<name>

关于流程和任务的事件

org.jboss.seam.createProcess.<name>
org.jboss.seam.endProcess.<name>
org.jboss.seam.initProcess.<name>
org.jboss.seam.startTask.<name>
org.jboss.seam.endTask.<name>
org.jboss.seam.initTask.<name>

关于组件的事件

org.jboss.seam.postCreate.<name>
org.jboss.seam.preDestroy.<name>

关于JSF生命周期的事件

org.jboss.seam.beforePhase
org.jboss.seam.afterPhase
org.jboss.seam.postInitialization

关于认证和安全的事件

org.jboss.seam.preAuthenticate.<name>
org.jboss.seam.postAuthenticate.<name>
org.jboss.seam.notLoggedIn
org.jboss.seam.remeberMe 如果Seam在客户端Cookie中发现username时发生

关于例外的事件

org.jboss.seam.exceptionHandled.<type>
org.jboss.seam.exceptionHandled
org.jboss.seam.exceptionNotHandled

关于事务的事件

org.jboss.seam.afterTransactionSucess.<name>
org.jboss.seam.afterTransactionSucess
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics