Tag: omn​​ifaces

Ajax Session Time Out FullAjaxExceptionHandlerFactory无法使用shiro

我使用Ajax会话超时添加的代码的详细信息,如BaluC所述 faces-config.xml中 org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory 在web.xml javax.faces.application.ViewExpiredException /expired.xhtml 应用-config.xml中 [main] user.loginUrl = /login.xhtml [users] admin = password [urls] /login.xhtml = user /css/**=anon /images/**=anon /emailimages/**=anon /login=anon /test=anon /sso=anon /ssologin=anon /**=authc <!– –> <!– –> <!– –> <!– –> <!– –> <!– –> <!– –> 添加了从BaluC博客复制的类文件FacesAjaxAwareUserFilter **代码** Jar文件已添加 omniface-1.7.jar 在.xhtml文件中添加了此内容 xmlns:o=”http://omnifaces.org/ui” xmlns:of=”http://omnifaces.org/functions” 想出了一个警告 NLS missing message: CANNOT_FIND_FACELET_TAGLIB in: org.eclipse.jst.jsf.core.validation.internal.facelet.messages […]

使用arquillian + omnifaces运行测试时的java.util.ServiceConfigurationError

我收到以下错误 “java.util.ServiceConfigurationError:javax.servlet.ServletContainerInitializer:Provider org.omnifaces.ApplicationInitializer not found” 在运行Arquillian测试时。 我已经把最基本的测试用例放在这里: https : //www.dropbox.com/s/kou5v8kqs5g4g4m/test.zip?dl = 0

Primefaces 3.5 + OmniFaces 1.3 SelectOneMenu的SelectItemsIndexConverter问题

我正在使用Primefaces 3.5 2012年12月5日SNAPSHOT,Mojarra 2.1.14和Tomcat 7.0.33。 对于POJO对象的单元格内编辑模式(不是行内),使用在ah:selectOneMenu中表示的模型/实体类,使用’click’作为celleditevent值,每当您单击一个对象然后单击通过单击其他对象,前一个对象显示其值而不是其标签。 这只是“装饰性”,当您重新加载页面时,它将显示标签值。

java.lang.AbstractMethodError:org.apache.xerces.dom.ElementImpl.getTextContent()Ljava / lang / String

我正在使用Omnifaces 1.3 + Primefaces 3.4.1 + Jboss 7.1.1 Final但我无法使用在我的web.xml上配置的FullAjaxExceptionHandler重定向exception,当它们来自ajax请求时。 什么都没发生,只是另一个例外: 19:38:05,467 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/taxMileage].[Faces Servlet]] (http–0.0.0.0-8181-4) Servlet.service() for servlet Faces Servlet threw exception: java.lang.AbstractMethodError: org.apache.xerces.dom.ElementImpl.getTextContent()Ljava/lang/String; at org.omnifaces.config.WebXml.parseErrorPageLocations(WebXml.java:216) [omnifaces-1.3.jar:1.3] at org.omnifaces.config.WebXml.(WebXml.java:84) [omnifaces-1.3.jar:1.3] at org.omnifaces.config.WebXml.(WebXml.java:53) [omnifaces-1.3.jar:1.3] at org.omnifaces.exceptionhandler.FullAjaxExceptionHandler.handleAjaxException(FullAjaxExceptionHandler.java:162) [omnifaces-1.3.jar:1.3] at org.omnifaces.exceptionhandler.FullAjaxExceptionHandler.handle(FullAjaxExceptionHandler.java:145) [omnifaces-1.3.jar:1.3] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119) [jsf-impl-2.1.7-jbossorg-2.jar:] at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-jbossorg-2.jar:] 有人可以给我一个关于此的提示吗? 我被卡住了。 如果我在没有ajax的情况下调用相同的错误,则会正确地重定向exception。 我的web.xml : taxMileage /pages/protected/user/dashboard.xhtml Faces Servlet javax.faces.webapp.FacesServlet […]