omnifaces

Why is WildFly 10 + JSF 2.3 not working with Omnifaces 2.6.1?

你离开我真会死。 提交于 2019-12-04 11:57:01
I've been trying to get an app up and running using jsf 2.3, primefaces 6 and omnifaces 2.6.1 on Wildfly 10. I have already splitted the jsf 2.3 (api and impl) and completed the set up for WildFly. The applications starts smoothly without omnifaces 2.6.1. But right when I add the omnifaces jar to the application classpath (/lib) this one fails at start up, giving the next exception: 13:21:52,024 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 78) Critical error during deployment: : com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null

Silence FullAjaxExceptionHandler

孤者浪人 提交于 2019-12-04 06:06:53
So after being confronted with the dreaded javax.faces.application.ViewExpiredException , I had to go look around the internet to find the proper solution. Fortunately, the solutions are readily available and I went ahead and adopted the OmniFaces FullAjaxExceptionHandler . Enough said, as with pretty much everything from OmniFaces, it worked wonders. But, every time I have a view expiring I am getting : SEVERE: WebModule[/myModule]FullAjaxExceptionHandler: An exception occurred during processing JSF ajax request. Error page '/WEB-INF/errorpages/test.xhtml' will be shown. javax.faces

After validation error subsequent ajax requests get values from UI Components and not from Beans

我们两清 提交于 2019-12-04 05:48:52
In my JSF 2 based application I have a form that includes (amongst other UI components) some checkboxes. On the checkboxes I have registered ajax requests that fire when they are checked. The ajax requests will actually just update the value of another checkbox in the backing bean. As a result the other checkbox will also be checked (when it gets re-rendered - as it will take the updated value from the backing bean in the render response phase). This works fine until the whole form gets submitted and validation errors occur. Then the ajax requests still work and change the value on the backing

omnifaces starting before openwebbeans 1.5.0?

牧云@^-^@ 提交于 2019-12-04 05:08:13
问题 I am using Java 8 / Tomcat 8 / OpenWebBeans 1.5.0 / MyFaces 2.2.8 / DeltaSpike 1.3.0. As I want to use the openwebbeans-tomcat7 module, I placed the following jars in tomcat/lib : openwebbeans-web-1.5.0.jar openwebbeans-tomcat7-1.5.0.jar openwebbeans-spi-1.5.0.jar openwebbeans-resource-1.5.0.jar openwebbeans-jsf-1.5.0.jar openwebbeans-impl-1.5.0.jar openwebbeans-el22-1.5.0.jar xbean-finder-shaded-4.1.jar xbean-asm5-shaded-4.1.jar myfaces-impl-2.2.8.jar myfaces-api-2.2.8.jar geronimo-atinject

Primefaces 3.5 + OmniFaces 1.3 SelectItemsIndexConverter issue with SelectOneMenu

夙愿已清 提交于 2019-12-04 04:33:12
问题 I'm using Primefaces 3.5 5th December 2012 SNAPSHOT, with Mojarra 2.1.14 and Tomcat 7.0.33. When using the in-cell editing mode (not in-row) for POJO objects with a model/entity class that are represented in a h:selectOneMenu, with 'click' as the celleditevent value, whenever you click on an object and then 'click away' by clicking on some other object, the previous object is displaying its value instead of its label. This is only 'cosmetic' as when you reload the page, it will show the label

Memory implications of OmniFaces ViewScoped bean?

别来无恙 提交于 2019-12-04 04:17:03
问题 From what I understand, ViewScoped beans only get destroyed when one of the following take place: 1) JSF sends a POST request to another page with something like a <h:commandLink...> 2) The number of open beans exceeds the maximum threshold setting (default of 15) 3) The user's session expires Here is my confusion: Does #1 mean that if a user navigates away from the page with a GET request, the bean will stay open, even if eventually a JSF POST happens in the same browser tab on another page?

Can I use omnifaces generic converter in primefaces autocomplete component?

不打扰是莪最后的温柔 提交于 2019-12-04 03:26:21
问题 I am trying to use Omnifaces generic Converter in Primefaces autocomplete component Like this : <p:dataTable id="transactiondetailsid" value="# {stockTransactionsBean.stkTransHeader.stkTransDetailsList}" var="stkTransDet" rowIndexVar="rowIndex"> <p:column> <f:facet name="header"> <h:outputText value="Item Code" /> </f:facet> <p:autoComplete id="dd" dropdown="true" autocomplete="true" value="#{stkTransDet.item}" var="i" itemLabel="#{i.itemnamee}" itemValue="#{i}" converter="omnifaces

Migrate JSF managed beans to CDI managed beans

邮差的信 提交于 2019-12-03 12:23:18
I'm planning to convert a web app from using JSF managed bean to using CDI managed beans. I know I'll need to do below: Add a empty beans.xml file in WEB-INF. Replace all JSF @ManagedBean to CDI @Named annotations. Replace all JSF scope annotations with CDI or OmniFaces scope annotations. Replace all JSF @ManagedProperty with CDI @Inject annotations. Is that all that needs to be done? Are there any gotchas that I need to be aware of? Basically, that's indeed all you need to do provided that you're on a Java EE server already. When on Tomcat, you'd need to manually install CDI first.

Omnifaces EAR deployment issue on glassfish 3.1.2.2

你。 提交于 2019-12-02 17:19:46
问题 I have a maven enterprise project (skinny) with omnifaces 1.4.1 glassfish 3.1.2.2 primefaces 3.5 primefaces extensions 0.6.3 myfaces extcdi 1.0.5 When i deploy the ear, the error is: remote failure: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util

Named object resource include not found - Omnifaces + JSF 2.2.12

▼魔方 西西 提交于 2019-12-02 09:54:33
问题 I have an issue with my JSF page since I've installed Mojorra version 2.2.12 (from 2.2.8): it throws an exception when the page is loaded. The exception is: Named object: org.omnifaces.component.output.ResourceInclude not found. I have the exact same issue with the Mojorra version 2.2.11. I don't have any problem with the version 2.2.8, 2.2.9, and 2.2.10. Environment: Tomcat 8 + omnifaces 1.11 + jsf 2.2.12 + richfaces 4.5.4.final. My JSF page includes a JSP fragment through the o