Questions tagged [omnifaces]

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

omnifaces
Filter by
Sorted by
Tagged with
1 vote
1 answer
404 views

Filter not functioning when used with omnifaces extensionless URLs

I am using omnifaces extensionless URLS in my web application. My web.xml is as below <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/...
0 votes
1 answer
1k views

Ajax Session Time Out FullAjaxExceptionHandlerFactory not working with shiro

Details of the code that i have added for using Ajax Session time out, as described by BaluC Faces-Config.xml <factory> <exception-handler-factory>org.omnifaces.exceptionhandler....
1 vote
0 answers
516 views

Primefaces 4, Omnifaces 1.7 JSF handle session timeout fail

faces-config.xml <factory> <exception-handler-factory>org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory</exception-handler-factory> </factory> web.xml <...
0 votes
1 answer
607 views

Cursor does not appear to set the focus on a inputext after a request

When informing the enrollment of an employee who is not registered in the given database the system issues an error and inputText component loses focus. After a few attempts the component gets the ...
2 votes
0 answers
371 views

Weblogic 12.1.2.0 + Omnifaces 1.7 + Richfaces 4.3.5.Final deploy errors

What steps will reproduce the problem? Compile the attached project "GitHub Project URL", generate the .ear and try to deploy it to Weblogic 12c. It's a test project to reproduce the error. What is ...
1 vote
0 answers
182 views

Printing org.joda.time.Period objects in a nice way

I've an entity that contains a org.joda.time.Minutes field. I want to use that field in one of my <h:selectOneMenu> components as a label: <h:selectOneMenu value="#{manager.spec}" ...
0 votes
1 answer
100 views

Use constant in f:viewAction through OmniFaces importConstants

I'm testing OmniFaces importConstant functionality and successfully display a constant on a page like this: #{Config.SOME_CONSTANT} (writes 4 to the page) If I try to do this in a f:viewAction ...
0 votes
1 answer
166 views

Omnifaces validateMultiple component only takes UIInput values, any workaround for considering UIOutput too?

So, I have an Address to validate and it has 4 input fields and 4 output fields, basically the 4 output fields are city,state,county and municipality. There are not editable, so they will be populated ...
3 votes
2 answers
3k views

FullAjaxExceptionHandler does not show session expired error page on ajax button

I have implemented Omnifaces FullAjaxExceptionHandler but the problem is It is not working with ajax requests. After session expires when I click to non-ajax button, It works well. It redirects user ...
2 votes
2 answers
3k views

POJO support for primefaces autocomplete using omnifaces

I am trying to use primefaces autocomplete component in my project, in order to avoid writing specific converter to each list object I am trying to use omnifaces as suggested in here and here by '...
0 votes
1 answer
441 views

Problems with Omnifaces GzipResponseFilter and page redirect (Glassfish only)

I get an error when I try to redirect a page in JSF action with a h:commandLink when I use the Omnifaces GzipResponseFilter (only in Glassfish). Exception: java.lang.IllegalStateException: Current ...
3 votes
1 answer
1k views

Why is my function not found?

Here is my code <html (...) xmlns:of="http://omnifaces.org/functions"> ... <c:set var="formattedDate" value="#{of:formatDate(now, 'dd/MM/yyyy')}" /> When I run it, I get this error: ...
0 votes
1 answer
877 views

Cancel button jsf not resetting entity

I'm trying to implement a cancel button to clear the fields from my entity. Though, when I'm setting the entity to null my fields still keep their value. Code: The EntityBB's cancel method (note ...
4 votes
1 answer
837 views

Memory implications of OmniFaces ViewScoped bean?

From what I understand, ViewScoped beans only get destroyed when one of the following take place: 1) JSF sends a POST request to another page with something like a <h:commandLink...> 2) The ...
0 votes
1 answer
608 views

Multiple call PreDestroy method by omnifaces ViewScoped

Invoke PostConstruct method at Initial requests. But, when I upload the images, there are multiple call PreDestroy method. That's mean, view id of ImageActionBean has been change for each ...
2 votes
0 answers
1k views

Render JSF components accordingly to media queries

I have based a project on http://www.initializr.com/ and it's working really well. Everything scales like I want it to but the problem left to solve seems to be what components to render. Now whenever ...
0 votes
0 answers
130 views

Omnifaces ValidateMultiple causes page to refresh constinously

I have added the validateMultiple tag from last Omnifaces 1.7 release, and for some reason it causes my application to refresh the view continously. I would like to validate several time fields with ...
1 vote
1 answer
103 views

Strange trouble with HttpFilter while authorize the login

I am using Omnifaces in my web application and currently use HttpFilter to authorize the login. Here is my filter class @WebFilter("/backend/*") public class AuthorizationFilter extends HttpFilter { ...
1 vote
1 answer
768 views

FullAjaxExceptionHandlerFactory seems to work, but it does not show the login screen. Any idea why?

I am trying to use FullAjaxExceptionHandlerFactory on tomcat. My WEB-INF/lib contains all-themes-1.0.10.jar commons-io-2.4.jar omnifaces-1.7.jar primefaces-4.0.jar My faces-config <?xml ...
1 vote
2 answers
857 views

Why am I getting WebXml is not initialized yet?

I´ve a Maven Web Application with JSF2, Primefaces, Spring, and Hibernate. So I recently migrated my web application from Glassfish 3 to Weblogic 12c. When it run on Glassfish it worked fine but ...
0 votes
1 answer
216 views

Adding omnifaces project gives incorrect url at redirect

Using omnifaces 1.6 in a jsf project with primefaces 3.5 on glassfish 3.1.2 FacesContext.getCurrentInstance().getExternalContext().redirect("localhost/my-project/views/index.jsf"); Using this code ...
1 vote
1 answer
500 views

OmniFaces validateOrder disabling

I'm trying to use validateOrder component to validate two java.util.Date objects. It is similar to showcase example on this link (PrimeFaces example). Everything works perfect, but i have one question:...
2 votes
1 answer
3k views

WARNING: @FacesConverter is using both value and forClass, only value will be applied

I installed OmniFaces 1.6, and I created Classes annotated @FacesConverter(forClass=MyClass.class) during the project deployment in GlassFish i have several wornigs: INFO: Initialisation de Mojarra ...
2 votes
1 answer
469 views

JSF 2 : ViewParams : action in setter method?

I am aware that custom action can be done using following standard way (for jsf 2.1) <f:metadata> <f:viewParam name="query" value="#{bean.query}" /> <f:event type="...
1 vote
1 answer
261 views

omnifaces and prime p:dialog modal bug

I'm using omnifaces to handle ajax timeout exceptions. After config it at faces-config: <factory> <exception-handler-factory>org.omnifaces.exceptionhandler....
1 vote
0 answers
2k views

Unable to create a new instance eventlistener in Omnifaces?

I am trying to use Converters Features of Omnifaces. My development environment as below: -primefaces 3.5 -jsf 2.0 -spring 3.5 -Jboss Seam 2.3 This environment is ok and there is no configuration ...
1 vote
1 answer
54 views

What's the best way to avoid navigation when executing an action on a method which returns non-void?

I need to remove an element from a java.util.Set, I'm iterating over in a h:dataTable. Pretty simple, right? This is what I have (com is my set, endpoint the iteration variable): <a4j:...
1 vote
1 answer
843 views

Mojarra 2.1.6 not working as expected with OmniFaces FullAjaxExceptionHandler

My environment is: JDK 6u31 GlassFish 3.1.2.2 Mojarra 2.1.6 (bundled with GF) PrimeFaces 4.0 OmniFaces 1.6.3 I configured both FacesExceptionFilter and FullAjaxExceptionHandler for my application, ...
1 vote
1 answer
404 views

omnifaces genericEnumConverter and enum properties

I am using omnifaces 1.7-snapshot genericEnumConverter. It works as expected. I would like to know if it is possible on the item label to show an enum property instead of its value. I was only able to ...
2 votes
1 answer
1k views

How to use FullAjaxExceptionHandler with a PrimeFaces actionListener

I am confused about how OmniFaces's FullAjaxExceptionHandler should work with a PrimeFaces <p:commandButton> that is supplied with an actionListener. With a regular <h:commandButton>, the ...
5 votes
1 answer
6k views

BeanManager on Apache Tomcat 7.0.47 cannot create resource instance

running on: Apache Tomcat 7.0.47 OmniFaces 1.6.3 JSF Mojarra 2.1.26 CDI Weld 2.1.0.Final Threre is an RuntimeException on Apache Tomcat 7.0.47 by accessing JNDI "java:comp/BeanManager". The CDI ...
1 vote
1 answer
2k views

(Why do I get) Error forwarding/redirecting to login page when not using AJAX after configuring to handle exceptions when using AJAX (using OmniFaces)

I have a a JSF application running on Glassfish [GlassFish Server Open Source Edition 3.1.2.2 (build 5); Mojarra 2.1.6 (SNAPSHOT 20111206)]. I am using PrimeFaces 3.5 and OmniFaces version 1.5. I am ...
2 votes
1 answer
380 views

omnifaces generic enum converter values order

I am using omnifaces 1.6.2 on a project. A have an enum with values like this: AC, AL, AP, AM, BA But when the values are shown in a selectonemenu they are always in a different order. Is there a ...
0 votes
2 answers
102 views

Multiple h:inputTextarea to single back-end variable

I'm trying to create a comment page with a variable set of comments (layed out via o:tree, thanks BalusC) that anyone can reply to. I'm displaying the h:inputTextArea via p:inplace, so there are ...
1 vote
1 answer
1k views

java.lang.IllegalStateException: WebXml is not initialized yet. Please use #init(ServletContext) method to manually initialize it

I'm trying to (auto) deploy an ear that holds code that uses a combination of JSF, PrimeFaces and OmniFaces on a WebLogic 12c application server. Every now and then (and lately there's more 'now' ...
1 vote
1 answer
252 views

Required fields with OmniFaces 1.6.1

Primefaces 3.5.16, JBoss 7.2.0, PE 0.7.1, Mojara 2.1.26, WELD-000900 1.1.10 (Final) Web.xml has some configuration stuff, faces-config has languages bundles defined. I have following dialog with some ...
1 vote
1 answer
355 views

h:commandbutton not working in <o:form>

<html xmlns:h="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:o="http://omnifaces.org/ui"> <o:form ...
0 votes
1 answer
1k views

Update jsf page dynamically with either pdf or html response

Currently i am using jsf2, primefaces 4 and omnifaces in my report project. I have jsf form with as follows: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun....
0 votes
1 answer
365 views

Adding entities to a <Collection> in JSF using selectonemenu and/or selectmanymenu

Evening! I've got a DB structure which includes a join table (User-Groups) that relates the Users entity to Group entities for authorisation purposes. This is a many-to-many relationship (Users is ...
1 vote
1 answer
827 views

Omnifaces FullAjaxExceptionHandler and PrimeFaces dialog

I'm using FullAjaxExeptionHandler from omnifaces library and it all works well, however I'm not sure how to show the exception in PrimeFaces dialog on the page where exception happened. Currently I ...
1 vote
1 answer
132 views

Upgrading Omnifaces - duplicates validator ID

I have a java ee 6 project bundled as ear-file that contains two web war-archive. Both using Omnifaces. Today I upgrade Omnifaces to the newest version 1.6. But now I cannot deploy anymore. I got the ...
0 votes
0 answers
67 views

How to use values from one section of view dynamically in a different section before submit?

We have a need where sections could be added and removed dynamically in one screen which need to be used in a different section in the same screen dynamically before submit. Adding/removing, binding ...
2 votes
1 answer
1k views

ContextNotActiveException when OmniFaces ViewScoped bean is injected in servlet

I've just updated a SessionScoped bean to OmniFaces (1.6.1) ViewScoped. Everything seems to work except for the fact that I get the following Exception when my backing bean is injected into a Servlet ...
0 votes
1 answer
182 views

Is there a way to dynamically configure error pages for Exceptions in JSF/AJAX?

I would like to dynamically set an error page in JSF. Specifically what I would like to do is whenever I get a ViewExpiredException to refresh the page. I am currently using omnifaces ...
0 votes
1 answer
478 views

How to evaluate a FacesComponent property inside a custom component

Lately, I've been working on a dynamic form project but is stop with a custom component problem. What I have: A faces component for formField: @FacesComponent(value = "formField") public class ...
2 votes
1 answer
1k views

How to dynamically add a component using "Faces.includeCompositeComponent"?. Websphere 8 and ICEFaces 3

I´m trying to dynamically add a composite component to another UIComponent using a small adaptation of OmniFaces Faces.includeCompositeComponent(...). I´ve tried to recreate the behavior of this ...
3 votes
0 answers
2k views

Why is my @ViewScoped bean being referenced on browser refresh after bean destroyed and POST to render new page?

First of all, I am using OmniFaces CDI @ViewScoped which was recently added to and released in OmniFaces 1.6. I am very pleased to use OmniFaces CDI @ViewScoped in my app, but I have a question. I ...
0 votes
0 answers
202 views

Any way to bypass form validation on p:commandButton without using o:ignoreValidationFailed or immediate=true

I create page forms with a parameter that tells them where to return when done. The backing bean is @ReqeuestScoped and includes this: <f:metadata> <f:viewParam name="return" value="#{...
5 votes
2 answers
4k views

I need to delay the display of a Primefaces AJAX Status dialog by X milliseconds

I need to delay the display of a Primefaces AJAX Status dialog by X milliseconds but OmniFaces ExceptionHandler reacts badly to javascript timeout solution. Here's what I got so far: <p:...
2 votes
1 answer
422 views

java.io.NotSerializableException - org.omnifaces.taghandler.Converter

I have an application using Primefaces 3.5 with Omnifaces 1.5 on Jboss 6, using myfaces 2.1.5 on trying to use the o:converter I am getting the follow error. org.omnifaces.taghandler.Converter ...

1
9 10
11
12 13