omnifaces

<o:form styleClass> not rendered when using MyFaces instead of Mojarra

余生颓废 提交于 2019-12-24 00:42:43
问题 I've been developing a website with JSF2.0 TomEE 1.7.3. In the last question I've asked : What are the recommended JSF dependencies with TomEE1.7.x? I got advices and decided to migrate from GlassFish(Mojarra) Faces to myFaces, because myFaces is the standard JSF implementation of TomEE. Then I realized that "OmniFaces v1.8.3 Form" is not rendering css class attribute with "style" nor "styleClass", if I use the default myFaces of TomEE. It worked fine with Mojarra, but now I get my HTML

BeanManager on Apache Tomcat 7.0.47 cannot create resource instance

ぃ、小莉子 提交于 2019-12-23 11:53:13
问题 running on: Apache Tomcat 7.0.47 OmniFaces 1.6.3 JSF Mojarra 2.1.26 CDI Weld 2.1.0.Final Threre is an RuntimeException on Apache Tomcat 7.0.47 by accessing JNDI "java:comp/BeanManager". The CDI BenManager is bound to " java:comp/env/BeanManager " vut not reached in your BeanManager Class. /** * Perform automatic initialization whereby the bean manager is looked up from the JNDI. If the bean manager is * found, then invoke {@link #init(Object)} with the found bean manager. */ private void init

@org.omnifaces.cdi.ViewScoped invokes @PostConstruct on unload of an already destroyed view

可紊 提交于 2019-12-23 02:52:54
问题 I have a problem working with @org.omnifaces.cdi.ViewScoped and multiple tabs: I have a link in TestPage.xhtml that opens another page (ShowValuePage.xhtml) with a request parameter "someValue". If I open this link 10 times in a new tab and navigate away in the first opened tab, PostConstruct will be called again instead of just navigating away. Same happens if I navigate back from ShowValuePage to TestPage multiple times. (To test this, we must click the links "Show Value" and "Home"

can i use FixViewState.js from omnifaces with richfaces' a4j:ajax (RF4+JSF2.2/mojarra)

北城以北 提交于 2019-12-23 02:01:35
问题 I use the great omnifaces 1.7 workaround FixViewState in order to fix the following issue: viewstate and ViewScope gets lost on ajax render="@form" . The workaround seems to work fine with f:ajax but not with a4j:ajax (richfaces). Is the fix supposed to work with richfaces out-of-the-box? (richfaces version is 4.3.5) maybe related issue logged by a4j:log: error[15:09:31.667]: [status=200] During update: javax.faces.ViewState not found Thanks! 回答1: Tl;dnr: Richfaces-4.x is broken with JSF-2.2

FullAjaxExceptionHandler does not redirect to error page after invalidated session

匆匆过客 提交于 2019-12-22 10:47:09
问题 I am having issues with the Omnifaces FullAjaxExceptionHandler (http://showcase.omnifaces.org/exceptionhandlers/FullAjaxExceptionHandler). It does not redirect to the specified error page after the session is invalidated. I have the following in my faces-config: <factory> <exception-handler-factory>org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory</exception-handler-factory> </factory> And the following in my web.xml: <error-page> <exception-type>javax.faces.application

OmniFaces o:validateAllOrNone in ui:repeat or h:dataTable

怎甘沉沦 提交于 2019-12-20 03:17:16
问题 Is it possible to use OmniFaces <o:validateAllOrNone> (which is pretty cool ;)) within an <ui:repeat> or <h:dataTable> ? I need a table with each row having an input field column. You could either fill in none of these values or all of them. If I put the <o:validateAllOrNone> within the <ui:repeat> or <h:dataTable> and use the id of the input field in components attribute, then the validator also gets triggered, if all fields are empty. 回答1: No, that's not possible. The components attribute

Omnifaces exception on deployment on Tomcat 7

社会主义新天地 提交于 2019-12-20 02:52:35
问题 I'm trying to add Omnifaces 2.1 to a web application to use FullAjaxExceptionHandler and possibly other functionality in Omnifaces 2.1. I've read and followed following post by BallusC and am still stuck: How to install and use CDI on Tomcat? Tried to install Weld 2.2.9.Final and configure as described above. I am using the following: JSF 2.2, EL 2.2, Servlet 3, Java 7 web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http:/

pe:ckEditor doesn't work anymore after adding CombinedResourceHandler

我与影子孤独终老i 提交于 2019-12-20 02:11:22
问题 I added OmniFaces to use the CombinedResourceHandler. But now the PrimeFaces Extensions <pe:ckEditor> doesn´t work anymore. Is there any workaround for this issue? 回答1: Unfortunately, this is a known issue caused by the way how PrimeFaces Extensions loads and manages its JS resources. This was already ever reported as an issue on old Google Code host and is mentioned in the current OmniFaces known issues wiki as follows: PrimeFaces Extensions <=0.7.1-4.0.0 (and probably future versions)

WELD-001519 An InjectionTarget implementation is created for an abstract class 'xxx'. It will not be possible to produce instances of this type

只谈情不闲聊 提交于 2019-12-19 19:53:10
问题 I'm running an application in the following environment. GlassFish Server 4.0 Mojarra 2.2.4 PrimeFaces 4.0 final PrimeFaces Extension 1.1.0 OmniFaces 1.6.3 After adding OmniFaces, the following warnings appear on the server terminal. WARNING: WELD-001519 An InjectionTarget implementation is created for an abstract class org.omnifaces.eventlistener.DefaultServletContextListener. It will not be possible to produce instances of this type! WARNING: WELD-001519 An InjectionTarget implementation is

h:body not rerendered when using FullAjaxExceptionHandler

*爱你&永不变心* 提交于 2019-12-19 07:56:10
问题 I'm using the OmniFaces FullAjaxExceptionHandler to display error pages. The error pages are shown correctly, but I'm having issues with the styling of those pages. My application is using a template which has CSS classes defined on the body element. These classes are different for normal and error pages: Normal page: <h:body styleClass="main-body layout-compact"> Error page: <h:body styleClass="exception-body error-page"> When the FullAjaxExceptionHandler processes an exception, a forward to