Questions tagged [omnifaces]
OmniFaces is a library for JSF 2.x that focusses on utilities that ease everyday tasks.
606
questions
0
votes
0
answers
165
views
java.lang.IllegalArgumentException: 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/...
0
votes
0
answers
24
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 ...
0
votes
1
answer
56
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 ...
2
votes
1
answer
74
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)....
0
votes
0
answers
15
views
o:graphicImage with dataURI="true" frozen programm via update
I have the following code.
The remoteCommand is executing after 5 seconds the method and update the h:form.
<h:form>
<p:remoteCommand name="checkPageRc" autoRun="true&...
0
votes
0
answers
37
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....
0
votes
0
answers
33
views
Omnifaces validateMultiple not triggered in combination with single field validator
I have a loop for constructing 12 input fields:
<h:panelGroup id="panel">
<c:forEach id="iter" items="#{of:createIntegerArray(0,12)}" var="dVar" ...
5
votes
3
answers
478
views
PrimeFaces PickList with OmniFaces validateAll leads to NullPointerException
What I actually want is two PrimeFaces <p:pickList>s that get validated with OmniFaces' <o:validateAll> component. Note, that validating a pickList with <o:validateAll> has a problem,...
0
votes
0
answers
33
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 ...
1
vote
1
answer
113
views
OmniFaces <o:tagAttribute> not working under some circumstances
I have a project where OmniFaces 2.6.8 is used. In this project I have some facelets tag files, which use OmniFaces' <o:tagAttribute>. For some of my tagfiles I noticed strange behavior, which ...
0
votes
0
answers
98
views
OmniFaces importConstants not available on ui:param
I have a web application currently deployed on Wildfly 26.1.0, using JSF 2.3 and OpenJDK 11. I'm also using the latest version of OmniFaces (3.13.3).
I'm trying to pass via ui:param a constant field ...
0
votes
0
answers
54
views
Java Server Faces - Ajax request with old session id causes error, if a new session already exists
This error has been happening for a while now in our logs, but we have never managed to replicate it.
2022-04-11 12:55:08,799 SEVERE [org.omnifaces.exceptionhandler.FullAjaxExceptionHandler] (default ...
0
votes
0
answers
40
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.
0
votes
0
answers
86
views
FullAjaxExceptionHandler not redirecting to errorpages in ajax request
Hello everyone during developmento of a JSF 2 application i stumbled on some weird behavior of OmniFaces FullAjaxExecptionHandler.
When an ajax request throws an error (RuntimeException descendands) ...
2
votes
1
answer
66
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/...
0
votes
1
answer
29
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
...
0
votes
1
answer
84
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 [...
0
votes
0
answers
36
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....
2
votes
1
answer
3k
views
JSF Form with AJAX validation - Focus issues
Hi JSF experts out there ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html ...
2
votes
0
answers
55
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 ...
4
votes
1
answer
766
views
Get list all initialized @Named-beans on runtime
I use javax.inject.Named and javax.enterprise.context.*Scoped plus org.omnifaces.cdi.ViewScoped to define the life-scope of my view-beans.
Now I want to get a list of all instantiated beans. First, I ...
0
votes
1
answer
150
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:...
0
votes
0
answers
69
views
JSF constructor called multiple times
We are having performance problems on our app. It's build with JSF and omnifaces and we are monitoring with new relic.
We found a particular trace were a method that is called from the bean's ...
1
vote
0
answers
76
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:...
3
votes
1
answer
119
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:...
1
vote
0
answers
96
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 ...
0
votes
0
answers
107
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 ...
1
vote
0
answers
106
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. ...
1
vote
1
answer
284
views
h:outputStylesheet not inserted when using FullAjaxExceptionHandler
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 ...
0
votes
1
answer
50
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
...
0
votes
1
answer
73
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();
...
0
votes
0
answers
133
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" ...
2
votes
1
answer
597
views
jsf highlight label for invalid input
Is there a simple possibility to apply a specific style to input labels that are invalid?
I've seen omnifaces highlight component which does the job for the input itself, but the given styleguide for ...
4
votes
2
answers
312
views
OmniFaces loading/unloading ViewScopedBean
Trying to narrow in on our issue we are upgrading from Jboss 6 EAP (JSF 2.1) to Jboss 7 EAP (JSF 2.2). Our working application now has an issue with OmniFaces ViewScoped beans.
Versions:
Mojarra 2....
0
votes
0
answers
38
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 ...
1
vote
0
answers
52
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 ...
0
votes
1
answer
157
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 {
...
2
votes
1
answer
132
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 ...
1
vote
1
answer
347
views
Does omnifaces have pagination related components?
I searched in omnifaces' showcase without success for any component that helps with JSF (datatable) real pagination.
Do you guys know if there is any?
It would be a great feature.
I worked a bit the ...
3
votes
1
answer
2k
views
FacesExceptionFilter OmniFaces using error pages inside WEB-INF
I need some help in using a OmniFaces Feature.
I am trying to use the FacesExceptionFilter to redirect the user to an error page when an exception is encountered.
I have the following web.xml config
&...
5
votes
1
answer
2k
views
Server side HTML sanitizer/cleanup for JSF
Is there any HTML sanitizer or cleanup methods available in any JSF utilities kit or libraries like PrimeFaces/OmniFaces?
I need to sanitize HTML input by user via p:editor and display safe HTML ...
3
votes
1
answer
320
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 ...
1
vote
1
answer
448
views
Omnifaces beforeunload not working in some cases
I'm using JSF with omnifaces and cdi.
Within the xhtml page I'm using some js similar to (more detailed on jsf page below)
window.onbeforeunload = function(e){
// some other stuff
return '...
2
votes
1
answer
578
views
SelectItemsConverter Omnifaces preselected object value?
I have a problem, well when I save my object to the DB it works fine, but when i want to retrieve it from the DB doesn't work, I'm using selectItemsConverter by Omnifaces
I have my Object "Modelo&...
0
votes
0
answers
209
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
...
0
votes
0
answers
54
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] (...
1
vote
1
answer
133
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"
...
10
votes
2
answers
29k
views
java.lang.AbstractMethodError: org.apache.xerces.dom.ElementImpl.getTextContent()Ljava/lang/String
I'm using Omnifaces 1.3 + Primefaces 3.4.1 + Jboss 7.1.1 Final but I just can't redirect the exceptions with the FullAjaxExceptionHandler configured on my web.xml when they come by ajax request. ...
1
vote
1
answer
119
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....
1
vote
2
answers
1k
views
Why is Omnifaces Websocket <o:socket> not working with Websphere 9?
I have a test app created base on the Omniface socket demo (http://showcase.omnifaces.org/push/socket) for a counter that increments as it is clicked and it's working on Tomcat 8.5, somehow when I ...