Questions tagged [omnifaces]

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

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

OmniFaces stands out from other JSF libraries like PrimeFaces or RichFaces in the fact that it isn't just about components, but instead it focuses on providing utility classes and functions for working with the JSF and Servlet APIs.

Some of its capabilities include:

Resources

606 questions
3
votes
1 answer

Omnifaces 2.x fails when used in a Spring Boot environment with Weld

Finally I successfully bootstrapped Weld in a Spring Boot environment as explained here. CDI works with no problem both for JSF using Mojarra and for Web Services using Jersey. But now I encountered a problem when trying to include Omnifaces 2.6 in…
Josep M Beleta
  • 581
  • 4
  • 19
3
votes
1 answer

"IllegalArgumentException: Can not set [EJB interface] field [managed bean field] to com.sun.proxy.$Proxy[some number]" with OmniFaces' @Eager

Injecting an EJB into a JSF managed bean in a multi-module Maven Java EE 7 Project fails both on Payara 4.x and 5.x as well as Glassfish 4.x and 5.x and WildFly 11.0.0.Final which makes me think that this is not a Payara/Glassfish bug as I thought…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
3
votes
0 answers

Primefaces and Omnifaces ClassNotFound warning from GlassFish, just warning, the application works correctly

We have a Java EE application where we use JSF with Omnifaces (v 2.6.3) and Primefaces (v 6.1), deployed on GlassFish v 4.1.2. Although the application runs correctly (I can navigate the pages and use them) we have some warnings in the logs…
Paul
  • 20,883
  • 7
  • 57
  • 74
3
votes
1 answer

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

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…
Johnn Guerrero
  • 105
  • 2
  • 8
3
votes
1 answer

JSF: Mojarra vs. OmniFaces @ViewScoped: @PreDestroy called but bean can't be garbage collected

This question is specific to the OmniFaces @ViewScoped bean (however of interest to wider discussion about memory leakage and resource disposal with JSF @ViewScoped). It is based on the results of this NetBeans8.1 test web app available on…
3
votes
1 answer

What is the client-side behavior of a JSF WebSocket when it is removed from the DOM

I have several panels, each displaying some contents, and zero, one, or more of these panels can be displayed, as in the following example:
Stéphane Appercel
  • 1,427
  • 2
  • 13
  • 21
3
votes
1 answer

GraphicImage: How to use a default image if value attribute would return null?

So what I am trying to achieve is, that my default image from the resource library is used, whenever the value attribute couldn't reference a proper image (e.g. no image uploaded/no image in the database). Just to visualize it: The user hasn't…
Snu
  • 142
  • 1
  • 12
3
votes
1 answer

OmniFaces CombinedResourceHandler takes long time to load

I use OmniFaces 2.2 togehter with PrimeFaces 5.3 and BootsFaces 0.8.1. Since it is recomended to use CombinedResourceHandler with BootsFaces I tried to use first as per BootsFaces instructions:…
3
votes
1 answer

JSF ViewState fix IE responseXML

I have a problem that I used ViewState fix in JSF library from OmniFaces: fixviewstate.js. The problem is that we encountered weird behaviour of IE in our application, where after second AJAX request to the same page, data.responseXML = {}. Strange…
pshemu
  • 169
  • 2
  • 10
3
votes
1 answer

Omnifaces exception on deployment on Tomcat 7

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…
user1746582
  • 579
  • 1
  • 9
  • 20
3
votes
1 answer

Passivation capable beans must satisfy passivation capable dependencies

I'm having a little issue with OmniFaces's Viewscoped. Even with my Managedbean implementing Serializable, I'm receiving the error below: Passivation capable beans must satisfy passivation capable dependencies. With some research, I found some…
3
votes
1 answer

IllegalArgumentException: Cannot convert PROPERTY of type class org.omnifaces.el.ExpressionInspector$ValueExpressionType to class java.lang.Boolean

I have an issue with OmniFaces 1.11 at class level (http://showcase.omnifaces.org/validators/validateBean) Basically, i'm trying to validate the same bean using two validation groups according to the button I click : …
Erwan Leroux
  • 108
  • 2
  • 11
3
votes
1 answer

After OmniFaces o:validateMultiple validation, PrimeFaces p:inputText values are lost with INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL

After OmniFaces validation, values are lost. I can reporduce problem then web.xml contains parameter javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL:
Palladium
  • 280
  • 2
  • 15
3
votes
1 answer

OmniFaces Extensionless URLs and login redirect

I have configured my application to use OmniFaces's Extensionless URLs feature, but now that I enabled security in my web.xml, the extensionless requests do not get caught by the . web.xml