Questions tagged [omnifaces]

OmniFaces is a library for JSF 2.x that focusses on utilities that ease everyday tasks.

Filter by
Sorted by
Tagged with
3 votes
1 answer
31 views

How do suppress my PrimeFaces ajaxStatus when using OmniFaces socket and JSF core commandScript?

My application uses PrimeFaces' global p:ajaxStatus. Whenever I need to suppress/avoid this behaviour, I use global="false" on specific components such as p:commandButton and the like. But ...
matsa's user avatar
  • 400
0 votes
0 answers
8 views

Custom validator for a date inside a JSF iterable component (data table)

I'm working with a data table with multiple objects and I need to validate the date in which one. I was using Omnifaces 'validateMultiple' component but since it is inside the data table, the ...
Diogo Ribeiro's user avatar
0 votes
1 answer
36 views

How can I create a more fine grained web socket in JSF?

In my JSF application I'm trying to use web sockets to push updates from backend to frontend. The backend publishes messages on an ActiveMQ topic which I'm listening to (on @ApplicationScoped level). ...
matsa's user avatar
  • 400
0 votes
0 answers
24 views

Does JSF have a way to get the tag handlers in the current view?

We have a JSF taglib we're using that dynamically adds components to a view. One of these components is an alternative button... the command button dynamically adds a an actual command button as a ...
Jonathan S. Fisher's user avatar
3 votes
1 answer
56 views

How can I piggyback request arguments from a web socket message without manually constructing array?

I've got an application scoped bean pushing json objects to a channel like this: <o:socket channel="controllerEventChannel" onmessage="function(message) { ...
matsa's user avatar
  • 400
0 votes
1 answer
118 views

ViewScoped bean being initialized multiple times with includeViewParams="true"

I'm currently migrating an web application developed in JSF from Wildfly 26 to Wildfly28. All the code was refactored to jakarta.* and I'm experiencing some strange behaviour with ViewScoped beans. On ...
areal's user avatar
  • 157
0 votes
0 answers
163 views

Using OmniFaces in Spring Boot project

I am using JSF with PrimeFaces in Spring Boot project. Spring Boot version 2.7.8 JSF api and impl version: 2.2.20 PrimeFaces version: 12 It all works. I want to use o:socket of OmniFaces. Basically I ...
SmokingTurtle's user avatar
1 vote
0 answers
36 views

Manifest cannot detected in Quarkus-Omnifaces Extension

I've configured the PWAResourceHandler on my Quarkus + Myfaces Application but the manifest.json can't be detected. I debug the code and see the manifest generating the file. But the manifest is not ...
Felipe Miranda's user avatar
0 votes
0 answers
684 views

Gradle 8.0.2 - Unable to deploy Omnifaces 'showcase-master'

Can build & deploy Omnifaces 'showcase-master' from 'https://showcase.omnifaces.org/' Using: mvn clean package -Pnon-ee,mojarra-4.0.0.SP01 Deployed 'showcase-4.1.war' on WildFly 27.0.1 using '...
NOTiFY's user avatar
  • 1,311
0 votes
0 answers
41 views

OmniFaces converters (like omnifaces.ListConverter) not found after upgrade to jsf 2.3, Primefaces 7.0, omnifaces 3.14.1

Since upgrade from primefaces 6.2 and omnifaces 1.12 to primefaces 7.0 and omnifaces 3.14.1 is not working basic omnifaces tag as converter: <o:converter converterId="omnifaces.ListConverter&...
JanZ's user avatar
  • 1
0 votes
0 answers
309 views

o:graphicImage 'value' attribute must refer a @GraphicImageBean or @ApplicationScoped bean

Using the example of 'o:graphicImage': "The below one renders byte[] property taking a Long argument as resource in <ui:repeat> loop": https://showcase.omnifaces.org/components/...
NOTiFY's user avatar
  • 1,311
1 vote
0 answers
60 views

Manually process `unload` event before triggering `preDestroy` method in OmniFaces ViewScoped bean

As a follow up to my question @PreDestroy method not called when leaving page of bean annotated with OmniFaces "ViewScoped" I have one other question: Is it possible to process the ...
scholt's user avatar
  • 180
0 votes
1 answer
174 views

@PreDestroy method not called when leaving page of bean annotated with OmniFaces "ViewScoped"

I am trying to invoke a method annotated with @PreDestroy in a @ViewScoped bean when the user leaves the page associated with that bean in a rather large JSF powered web application. After reading ...
scholt's user avatar
  • 180
2 votes
1 answer
135 views

How to invalidate views for the current session in JSF?

We have an application (Mojarra 2.3) where a user can change a global filter of the data it sees. When that happens, I want to keep the session, but invalidate the active views (which are server side)....
Jasper de Vries's user avatar
0 votes
0 answers
49 views

I try to add socket with omnifaces but i get those errors

I try to add socket with omnifaces 3.0 from here https://showcase.omnifaces.org/push/socket but i get those errors java.lang.NoSuchMethodError: org.omnifaces.facesviews.FacesViews....
Mohamed Laribi's user avatar
0 votes
0 answers
40 views

JSF editions and Ajax server-side processing

Will the new JSF 4.0 be free of the full view getting rebuild on server side after each ajax request? This rebuild is very time consuming on pages with many components. Or exists a way to avoid ...
Piotr M's user avatar
0 votes
0 answers
60 views

Emulate bypassUpdates when migrate from RichFaces to PrimeFaces

What's the best way to emulate the bypassUpdates property of a4j:support? This property skip JSF phase 4 and 5, no matter if validation success or not. Thanks.
Jose Ignacio Larghi's user avatar
0 votes
0 answers
42 views

Omnipersistence: The entity has no primary key attribute defined [duplicate]

I am trying to use Omnipersistence for the first time on a new Maven project and get the following error in Eclipse: The entity has no primary key attribute defined import org.omnifaces.persistence....
jeff's user avatar
  • 3,660
2 votes
1 answer
83 views

Omnifaces LinkageError

this is my first post, I hope don't be a mess. I'm getting the following error when I tried to deploy and ear app: java.lang.LinkageError: loader constraint violation: loader (instance of org/...
Roberto Lagos's user avatar
1 vote
0 answers
75 views

OmniFaces o:socket and myfaces f:websocket re-implement authentication with tokens, is it possible to disable?

We were really happy to see f:websocket in JSF 2.3, as it's an awesome feature that really bridges the gap stateful applications. Unfortunately the implementation seems to be problematic in a load ...
Jonathan S. Fisher's user avatar
0 votes
1 answer
155 views

WebSocket <o:socket> NoSuchBeanDefinitionException in Tomcat

I try recreating the demo example in omnifaces https://showcase.omnifaces.org/push/socket Tomcat throws NoSuchBeanDefinitionException with the following stacktrace 28-Dec-2021 17:29:41.969 SEVERE [...
stavromachinima's user avatar
0 votes
1 answer
32 views

Omnifaces no current representation for target resource

I try recreating this example https://showcase.omnifaces.org/push/socket into my server. I have currently omnifaces-1.6.3.jar installed but socket doesn't work properly because it throws ...
stavromachinima's user avatar
0 votes
1 answer
256 views

Problem when deploying project with web socket on Jetty 9.2.13.v20150730

I've experienced a problem while migrating an app from PrimeFaces 5.2 to 10. This problem is related to migration of web socket implementation from Primefaces to Omnifaces. The versions I'm using: PF:...
Dan Chirita's user avatar
1 vote
0 answers
132 views

p:tree / o:tree update individual nodes with p:autoUpdate not working

I want to update a <p:outputPanel id="personName"> inside a node of a tree using PrimeFaces AJAX update. I tried my approach both with PrimeFaces <p:tree> and OmniFaces <o:...
MaNa's user avatar
  • 51
3 votes
1 answer
135 views

Omnifaces TagAttribute Id cannot be used as id

I have the following Facelet Taglib: <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:o="http:...
Gábor Lipták's user avatar
0 votes
0 answers
145 views

Omnifaces Socket doesn't work on https connection

recently i was exploring websocket and i choose to use using <o:socket> from Omnifaces, I'm using Glassfish 4 for the server i have test and run my code on localhost and its working and ...
Makku's user avatar
  • 97
1 vote
0 answers
132 views

Azure WAF Issue with WebSocket (OmniFaces )

I have a OmniFaces WebSocket deployed on tomcat. The WebSocket works fine on tomcat. One of our client infrastructure setup is Azure WAF --> IIS --> Tomcat. We have successfully tested the ...
Ravi's user avatar
  • 391
1 vote
0 answers
120 views

Omnifaces ViewScoped with PWAResourceHandler

I have a web application currently deployed on Wildfly 23.0.2, using JSF 2.3 and OpenJDK 11. I'm also using the latest version of OmniFaces (3.11). One of the application requirements is PWA support. ...
areal's user avatar
  • 157
0 votes
1 answer
56 views

Jsf Omnifaces After sessiontimeout called unload throught Jaas the result is white screen Empty Result

I don't know exactly what is in the background, and I'd like to know :). Reproduction steps: get main page Jaas redirect to Login page Login. Landed on a stateful page! wait sessiontimeout ...
László Tóth's user avatar
0 votes
1 answer
131 views

Shiro Logout page: "There is no session with id" - Shiro

I want to have a normal logout from my p:commandButton: I have in my backend bean this function: public void logout() { SecurityUtils.getSubject().logout(); ...
vished2000's user avatar
0 votes
0 answers
191 views

Can show a single 'o:graphicImage' image but not multiple numbers of image

Can select a single image & display it using these two: <p:galleria value="#{imagesController.images}" var="image" panelWidth="1500" panelHeight="1000" ...
NOTiFY's user avatar
  • 1,311
0 votes
0 answers
50 views

o:socket in EJB class - I get a NPE in org.omnifaces.util.Messages

I´m trying to send a push notification from my EJB class: @Stateless public class SendEmailNotificationReminderServiceBean implements SendEmailNotificationReminderService { @Inject private ...
vished2000's user avatar
1 vote
0 answers
64 views

Omnifaces o:messages rendering with custom message

In Omnifaces it's possible to render messages on your own, using <o:messages var="msg">, but this only works if you use the var attribute. If you specify a custom message with message ...
semrola's user avatar
2 votes
1 answer
155 views

JSF with ExtensionlessURLs / Omnifaces

I´m trying to use ExtensionlessURLs in my JSF app... I´m using already: https://showcase.omnifaces.org/facesviews/ExtensionlessURLs This works fine, but if I have a URL with a parameter it´s still ...
vished2000's user avatar
0 votes
1 answer
207 views

How to properly resolve NPE when using OmniFaces @Param on bean with custom CDI interceptor

I want to use OmniFaces @Param on a view controller annotated with a custom CDI interceptor: @Named @javax.faces.view.ViewScoped @CustomInterceptor public class Controller implements Serializable { ...
irieill's user avatar
  • 1,223
3 votes
1 answer
476 views

JSF 2.3 Form Based Login and ViewExpiredException

I have a web application currently deployed on Wildfly 22, using JSF 2.3 and OpenJDK 11. I'm currently migrating the login page from j_security_check to a programmatically login, following BalusC ...
areal's user avatar
  • 157
0 votes
0 answers
63 views

Error after migration omnifaces 3.7.1 to 3.8.1 validateBean with UIComponent

I'm recently migrate my jsf webapp to omnifaces 3.8.1 and i'm getting an error on validateBean. This seams to be caused by UIComponent property in bean. 11:10:18,385 ERROR [io.undertow.request] (...
Dani's user avatar
  • 1
1 vote
1 answer
182 views

Omnifaces: o:socket with o:commandScript or f:ajax and avoid ajax request

I have the following codes, which are doing the same: Option1: <o:socket channel="notificationChannel" user="#{loginBean.currentEmployee.id}" scope="session" ...
vished2000's user avatar
2 votes
1 answer
203 views

When using org.omnifaces.cdi.ViewScoped my javax.servlet.Filter receives both a GET and a POST on a single page view

My servletfilter for logging page views is receiving a GET and a POST with a single page request. I tracked it back to using Omnifaces ViewScope on page backing bean. @Named @org.omnifaces.cdi....
jeff's user avatar
  • 3,660
0 votes
0 answers
224 views

ui:repeat: Regardless of validation error inner component keeps in state "valid"

I would like to mark a single component within ui:repeat as not valid. My attempt: Bean: @Named @RequestScoped public class TestBean { private List<String> strLst; @PostConstruct ...
Toru's user avatar
  • 905
1 vote
1 answer
825 views

Login not forwarding correctly with CustomFormAuth and o:form

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'...
Pilpin's user avatar
  • 150
2 votes
1 answer
370 views

org.omnifaces.cdi.push.SocketChannelManager$ViewScope cannot be cast to com.sun.faces.push.WebsocketChannelManager$ViewScope

It's a follow-up to my previous question, where I couldn't make f:websocket work possibly due to a bug in Mojarra 2.3.9. I wanted to give it another try with o:socket. My dependencies include: ...
Andrew Tobilko's user avatar
4 votes
1 answer
8k views

java.lang.AbstractMethodError: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl does not inherit of abstract javax.xml.parsers.DocumentBuilderFactory [duplicate]

General: OmniFaces / Xercex / Naming-Conflict while Migration of JSF-Web-Projekt (Java and Tomcat) Introduction We started building and enterprise JSF-Application (Eclipse, Maven, CDI (Open-Web-...
Luqqu's user avatar
  • 186
0 votes
0 answers
254 views

Application using Omnifaces Socket is working fine on Wildfly but wont deploy on Weblogic

I'm developing chat app using OmniFaces version 2.7 o:socket and it works like a charm when I deploy it to WildFly 13.0.0 Final but it won't deploy on WebLogic Server Version: 12.2.1.3.0. Here is the ...
Kiki's user avatar
  • 2,243
3 votes
0 answers
257 views

Session is never expired in JSF Websocket

I'm using Omnifaces websocket. Session is never timeout. I tried with jsf websocket. There's the same result. When I go to another page that doesn't use websocket and stays at that page, session will ...
PeterL355's user avatar
0 votes
0 answers
34 views

Issue with primefaces-8.0 ,omnifaces-1.8 and prettyfaces-jsf2-3.3.3 combine together [duplicate]

I have an application runing with primefaces-8.0 and omnifaces-1.8. Everything were working fine before i introduce prettyfaces-jsf2-3.3.3. The probleme is that the fileupload is not working anymore &...
SOULEY Afelete Samson's user avatar
0 votes
0 answers
294 views

PrimeFaces on selectCheckboxMenu click inside h:panelGrid causes page jump to top

I have <p:selectCheckboxMenu> component inside <h:panelGrid> as you can see in example : <h:panelGroup id="...."> <p:fieldset id="....." rendered=...
Kreepo's user avatar
  • 1
0 votes
1 answer
111 views

o:graphicImage caching possible?

In my topbar I have a <o:graphicImage> to show picture from my user. <o:graphicImage dataURI="true" height="32" width="32" styleClass="img-circle" value="#{...
vished2000's user avatar
0 votes
0 answers
45 views

OmniFaces 3.4.1 won't deploy in WildFly 16 or 18 [duplicate]

I have successfully used OmniFaces 3.2 for a number of years with no issues. However I can't deploy 3.4.1 to WildFly 18. Tried with 16 too. Weld 3.1.3.Final CDI 2.0 JBoss WildFly 18.0.1.Final Java ...
NOTiFY's user avatar
  • 1,311
3 votes
1 answer
138 views

OmniFaces <o:validateMultiple> resetting two PrimeFaces <p:selectOneMenu> after validation failed

I have an OmniFaces <o:validateMultiple> set to two <p:selectOneMenu>. The one dropdown box is for the home, the other for the away team (of a sports game). The validator checks, if the ...
Kawu's user avatar
  • 13.7k

1
2 3 4 5
13