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
4
votes
1 answer

Why are my @Inject'ed fields null when using the Converter with @Param?

I've a pretty basic setup here: @Named @ApplicationScoped public class TalentIdConverter implements Converter { @EJB private EntityManagerDao em; @Override public Object getAsObject(FacesContext context, UIComponent component,…
mabi
  • 5,279
  • 2
  • 43
  • 78
4
votes
1 answer

How to use OmniFaces in junit

in my test method i want to be able to call Ajax.oncomplete which internally make calls to: OmniPartialViewContext.getCurrentInstance please advise how to do that.
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
4
votes
2 answers

How can I skip bean validation if all fields for the entity are empty?

I have a address entity like this: @Entity public class Address implements java.io.Serializable { @Id @GeneratedValue(strategy = IDENTITY) private Long id; @Size(max = 100) private String street; @Size(max = 15) private…
mabi
  • 5,279
  • 2
  • 43
  • 78
4
votes
1 answer

Expire data with Omnifaces

I have a large buffer of application scoped content that I want to keep in memory. Using Omnifaces let's do that pretty easily. However, if I need to expire the cache, there appears to be no method to do so. I can set the time attribute if…
TemarV
  • 317
  • 1
  • 4
  • 12
4
votes
3 answers

Primefaces picklist target and source values do not change

My primefaces pickList source and target values do not change, I have followed the example in primefaces showcase and also looked at several posts here but still am not able to solve the problem. I am using a list from the database to populate the…
Silverfish
  • 103
  • 1
  • 2
  • 9
4
votes
1 answer

How to handle javax.el.PropertyNotFoundException with custom exception handler

I tried the AjaxExceptionHandler of omniFaces (which is quite helpful) and configured it to catch java.lang.Throwable and exception stemming from all kind of requests (not only ajax requests). It works great, however it does not catch…
jonnie119
  • 421
  • 1
  • 6
  • 16
3
votes
1 answer

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:
matsa
  • 346
  • 5
  • 16
3
votes
1 answer

Omnifaces TagAttribute Id cannot be used as id

I have the following Facelet Taglib:
Gábor Lipták
  • 9,646
  • 2
  • 59
  • 113
3
votes
1 answer

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 example on this post: Performing user authentication…
areal
  • 157
  • 5
3
votes
0 answers

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 expire normally. Here are example of my codes…
PeterL355
  • 75
  • 1
  • 9
3
votes
1 answer

OmniFaces resetting two PrimeFaces after validation failed

I have an OmniFaces set to two . The one dropdown box is for the home, the other for the away team (of a sports game). The validator checks, if the combination of the two teams already exists in the schedule, if…
Kawu
  • 13,647
  • 34
  • 123
  • 195
3
votes
0 answers

Populating data after displaying initial data of a JSF page

This is regarding a JavaEE web application which uses JSF, JPA and Primefaces. In a large JSF page, a table needs to be populated by a list of items. The first column display the name of the items as an output label. The second column has an input…
Buddhika Ariyaratne
  • 2,339
  • 6
  • 51
  • 88
3
votes
2 answers

JSF 2.3 CDI not working on tomcat

I am trying to set up jsf 2.3 on tomcat 8 whenever I used @inject I keep having an error with it I have googled and searched on stackoverflow.com yet I can't find a solution to it. I have already installed CDI (Weld) on it following @BalusC example…
3
votes
1 answer

OmniFaces inputFile case insensitive media type filtering

I'm using OmniFaces's 2.6.1 inputFile to upload files and want to apply media type filtering through the use of the accept attribute, for example accept="image/png". This works fine for file names having a .png extension, but is apparently case…
baraskae
  • 115
  • 5