omnifaces

Inject Omnifaces PushContext in a bean managed by Spring

柔情痞子 提交于 2021-02-10 15:06:12
问题 I have an JSF app running on WildFly 10 and Primefaces 6.2 and Omnifaces 2.6.2. My Beans are managed by Spring like this: @Controller @Scope("session") public class CompanySelectionController implements Serializable { I'm trying to implement Omnifaces WebSockets However when I try to inject PushContext like below: @Inject @Push private PushContext someChannel; it says "No qualifying bean of type [org.omnifaces.cdi.PushContext]" What should I do in this case? 来源: https://stackoverflow.com

Exclude RichFaces JS files in CombinedResourceHandler

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 04:24:25
问题 Is it possible for the CombinedResourceHandler to ignore RichFaces JS files? When I let omnifaces combine all JS files, including RichFaces with Richfaces optimisation off <context-param> <param-name>org.richfaces.resourceOptimization.enabled</param-name> <param-value>false</param-value> </context-param> I get the following exception SEVERE: Error Rendering View[/login.xhtml] java.lang.UnsupportedOperationException at org.richfaces.resource.ExternalStaticResource.getURL(ExternalStaticResource

Exclude RichFaces JS files in CombinedResourceHandler

允我心安 提交于 2021-01-29 04:23:47
问题 Is it possible for the CombinedResourceHandler to ignore RichFaces JS files? When I let omnifaces combine all JS files, including RichFaces with Richfaces optimisation off <context-param> <param-name>org.richfaces.resourceOptimization.enabled</param-name> <param-value>false</param-value> </context-param> I get the following exception SEVERE: Error Rendering View[/login.xhtml] java.lang.UnsupportedOperationException at org.richfaces.resource.ExternalStaticResource.getURL(ExternalStaticResource

Login not forwarding correctly with CustomFormAuth and o:form

99封情书 提交于 2020-07-15 09:22:10
问题 I'm trying to implement Jakarta Security on my web project, to do so I'm following the amazing "The Definitive Guide to JSF in Java EE 8" by Bauke Scholtz and Arjan Tijms but it seems that I'm hitting a wall. When I type in a restricted url in the address bar the forward happens properly and I see the login page but after submitting the form the page is not redirected and the login page seems to be reloaded (the fields are emptied, but the url in the address bar is still the one from the

How to use OmniFaces @Eager annotation with PrimeFaces?

泄露秘密 提交于 2020-03-04 07:08:50
问题 PrimeFaces and OmniFaces can be used together in a JSF project. My project is using PrimeFaces 6.1 and works fine. However simply declaring the Maven dependency for OmniFaces <dependency> <groupId>org.omnifaces</groupId> <artifactId>omnifaces</artifactId> <version>2.6.7</version> </dependency> doesn't cause the @Eager annotation an application scoped bean injected with @Named to have any effect. Afaik instructions for CombinedResourceHandler don't solve this problem because it's an injection

How to use OmniFaces @Eager annotation with PrimeFaces?

本小妞迷上赌 提交于 2020-03-04 07:08:19
问题 PrimeFaces and OmniFaces can be used together in a JSF project. My project is using PrimeFaces 6.1 and works fine. However simply declaring the Maven dependency for OmniFaces <dependency> <groupId>org.omnifaces</groupId> <artifactId>omnifaces</artifactId> <version>2.6.7</version> </dependency> doesn't cause the @Eager annotation an application scoped bean injected with @Named to have any effect. Afaik instructions for CombinedResourceHandler don't solve this problem because it's an injection

org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type Bean with qualifiers @Default

孤者浪人 提交于 2020-02-03 10:16:30
问题 My project was working fine yesterday. The only thing I did was to change the structure from a single war to a multi module pom. If I understand correctly the stacktrace there is ambiguousity between weld and omnifaces websocket lib. However there doesn't seem to be any call to any of my methods on the stacktrace. So maybe it's a problem with omnifaces ? I don't even use omnifaces websockets, I use javax.websocket. I did however try it out in this project in the past, and I did a search on

org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type Bean with qualifiers @Default

亡梦爱人 提交于 2020-02-03 10:16:07
问题 My project was working fine yesterday. The only thing I did was to change the structure from a single war to a multi module pom. If I understand correctly the stacktrace there is ambiguousity between weld and omnifaces websocket lib. However there doesn't seem to be any call to any of my methods on the stacktrace. So maybe it's a problem with omnifaces ? I don't even use omnifaces websockets, I use javax.websocket. I did however try it out in this project in the past, and I did a search on

FullAjaxExceptionHandler with datatable and lazydatamodel

纵饮孤独 提交于 2020-01-24 01:48:48
问题 I'm building a search page with primefaces 3.4 and omnifaces 1.3. Managed bean is SessionScoped. I have a xhtml page with a: <p:autoComplete id="searchBox" value="#{searchBean.queryText}"... /> <p:commandButton action="#{searchBean.search()}" value="search" ajax="false" .../> <p:dataTable id="docuList" var="doc" binding="#{searchBean.resultDataTable}" value="#{searchBean.lazyModel}" lazy="true" styleClass="noBorder" paginator="true" rows="10" paginatorPosition="bottom" paginatorTemplate="

How to use OmniFaces Ajax.updateColumn() or Ajax.updateRow() via p:ajax

谁说胖子不能爱 提交于 2020-01-21 18:05:35
问题 I am attempting to use the Ajax.updateColumn() method of the OmniFaces 1.3 (SNAPSHOT) Ajax utility. More specifically, I want to replace the use p:ajax update=":pageContentPanel", which is an h:panelGroup (or p:outputPanel) which contains the following xhtml, with the use of Ajax.updateColumn(table, 1). <h:dataTable id="dt_tripDates" style="width: 200px !important;" var="tripDate" value="#{pf_ordersController.tripDates}"> <p:column style="text-align: right !important;"> <h:outputText id=