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

591 questions
16
votes
1 answer

Pass an object between @ViewScoped beans without using GET params

I have a browse.xhtml where I browse a list of cars and I want to view the details of the car in details.xhtml when a "View more" button is pressed. Their backing beans are @ViewScoped and are called BrowseBean and DetailsBean, respectively. Now, I…
Chris
  • 3,219
  • 8
  • 39
  • 61
12
votes
1 answer

Migrate JSF managed beans to CDI managed beans

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…
HockChai Lim
  • 1,331
  • 1
  • 13
  • 26
10
votes
1 answer

Why use omnifaces while I am using primefaces?

I need to know what the benefits of using OmniFaces would be versus PrimeFaces which I'm using at the moment. What features does OmniFaces offer that PrimeFaces doesn't?
John Alexander Betts
  • 3,560
  • 6
  • 39
  • 65
10
votes
2 answers

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. Nothing happens, just an another…
Basileus
  • 140
  • 1
  • 1
  • 9
9
votes
2 answers

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

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…
Ced
  • 12,657
  • 11
  • 62
  • 124
8
votes
1 answer

WARNING: Parameter 1 of type List> from public void org.omnifaces.cdi.eager.EagerBeansRepository.setXxx is not resolvable to a concrete type

I'm using Omnifaces 1.8.1 and Whenever I deploy my application to Glassfish I get the following warning which causes some delay in the deploy process. Warning: WELD-001519 An InjectionTarget implementation is created for an abstract class…
fareed
  • 2,892
  • 5
  • 32
  • 56
7
votes
1 answer

Silence FullAjaxExceptionHandler

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…
blo0p3r
  • 6,392
  • 7
  • 47
  • 67
6
votes
1 answer

Usage of OmniFaces Param.validatorAttributes

I try to use the OmniFaces @Param annotation to inject a request parameter. I also make use of its validatorClasses attribute to validate the parameter. Eventually this used validator needs a special attribute to function and I want to pass the…
darefilz
  • 413
  • 3
  • 14
6
votes
1 answer

h:body not rerendered 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 which has CSS classes defined on the body…
baraskae
  • 95
  • 5
6
votes
1 answer

How to integrate OmniFaces with Spring Boot

I've found some tutorials about integrating JSF technology with Spring Boot, but it seems a rather involved work to get OmniFaces working with Spring Boot. Is it a good idea to integrate these two together at all?
Dandelion
  • 656
  • 2
  • 11
  • 29
6
votes
1 answer

java.util.ServiceConfigurationError when running tests using arquillian+omnifaces

I am getting the following error "java.util.ServiceConfigurationError: javax.servlet.ServletContainerInitializer: Provider org.omnifaces.ApplicationInitializer not found" when running Arquillian tests. I have put the most basic test case I…
LoneWolf
  • 495
  • 4
  • 17
6
votes
1 answer

Why FullAjaxExceptionHandler does not simply perform an ExternalContext#redirect()?

In OmniFaces, the FullAjaxExceptionHandler, after having found the right error page to use, calls the JSF runtime to build the view and render it instead of the page that includes the AJAX call. Why this? IMHO it would be simpler to just perform a…
titou10
  • 2,149
  • 1
  • 14
  • 33
6
votes
1 answer

Override Omnifaces Validation Message with JSF message-bundle?

Is it possible to override the default omnifaces validation messages with a jsf message-bundle? my message-bundle: javax.faces.converter.DateTimeConverter.DATE={2}: ''{0}'' could not be understood as a…
Khinsu
  • 1,439
  • 10
  • 26
6
votes
1 answer

Spring Security/JSF/Hibernate Accidental Session Hijacking on Tomcat?

Something very strange and embarrassing happened to me the other day and I don't have words to describe what happened. My app runs Spring 3 integrated with JSF 2.1, Hibernate 4, Spring Security all on Tomcat 7. I was over the phone with someone…
maple_shaft
  • 10,328
  • 4
  • 42
  • 70
6
votes
1 answer

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

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…
Jens
  • 5,615
  • 1
  • 45
  • 71
1
2 3
39 40