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

Handling a domain exception happened during template evaluation

I'm designing an error page for a particular exception type. xxx.AbstractConfigurableNotFoundException /xxx/page-not-found.xhtml I am using OmniFaces and their…
Andrew Tobilko
  • 44,067
  • 12
  • 74
  • 128
4
votes
1 answer

Determine JSF Library Resource Using Javascript

I am a developer on the Primefaces Extensions project and I use a core Primefaces JS function to get a location of a resource in Javascript for the DocumentViewer and CKEditor components. The getFacesResource() function is in PrimeFaces core.js and…
Melloware
  • 7,402
  • 2
  • 26
  • 47
4
votes
2 answers

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.2.14 OminFaces 2.6.9 PrimeFaces 6.2.5 We have a…
Melloware
  • 7,402
  • 2
  • 26
  • 47
4
votes
1 answer

How to display apostrophe ' in faces message added via OmniFaces Messages#add

I am using p:messages for display error no UI in primefaces XHTML page. I want to display String like Employee's. When I am trying to use OmniFaces Messages utility, it is not showing. For more detail look code below. XHTML:
ankush yadav
  • 422
  • 3
  • 13
4
votes
1 answer

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 thought this blog-entry covers this issue, but it…
Rokko_11
  • 619
  • 1
  • 6
  • 21
4
votes
1 answer

o:graphicImage does not change when actual image is deleted or updated in database

I am trying to display a which is stored in a database. I have a . Note: The ID (1) is only for testing. My property looks like: @Lob private byte[] image; and my dao/service is…
alexander
  • 999
  • 2
  • 15
  • 34
4
votes
1 answer

WELD-001409 Ambiguous dependencies for type [EagerBeansRepository]

I'm trying to migrate my JSF application to CDI. I have implented the following changes: Added an empty beans.xml file to WEB-INF Changed @ManagedBean 's to @Named Changed All the scopes I have to CDI Scopes (Session, View, Request) Changed all…
fareed
  • 2,892
  • 5
  • 32
  • 56
4
votes
1 answer

NullPointerException at org.omnifaces.facesviews.FacesViewsForwardingFilter

I run a Java EE 7 application on WildFly 8.2. I use OmniFaces 1.8.1. I see in log files NullPointerExceptions related to FacesViewsForwardingFilter: 2015-02-11 15:42:22,870 ERROR [io.undertow.request] (default task-12) UT005023: Exception handling…
4
votes
1 answer

NoAutoGeneratedIdViewHandler and production?

The OmniFaces 2.0 introduced a NoAutoGeneratedIdViewHandler. This is a great feature but surely it should be off for production mode? Even after reading the docs and source I am not sure if it's development mode only or not. Crossing my fingers :-)
Karl Kildén
  • 2,305
  • 20
  • 32
4
votes
1 answer

'omnifaces.SelectItemsConverter' converter id is not registered

I'm trying to create a selectManyCheckbox feature in my application, but now I'm in "converter problem". To take care this, I'm trying to use Omnifaces that already have a converter to objects. My solution is based on this and this question (both…
Paladini
  • 4,232
  • 14
  • 47
  • 92
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,141
  • 1
  • 34
  • 70
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
  • 31,861
  • 113
  • 313
  • 484
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,141
  • 1
  • 34
  • 70
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
  • 297
  • 1
  • 3
  • 11
1 2
3
39 40