omnifaces

Avoid Going on back page after Logout in JSF application

喜夏-厌秋 提交于 2020-01-16 18:24:23
问题 I am disabling the user to go back on the previous page after he has logged out. Controls comes in the filter but the page are still there in cache. I have used the filter suggested in this answer : BalusC Answer My filter looks like : @WebFilter public class NoCacheFilter implements Filter { @Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletResponse response = (HttpServletResponse) res; System.err

FullAjaxExceptionHandler does not redirect to error page for Ajax request

无人久伴 提交于 2020-01-16 01:01:34
问题 I know there has been numerous questions here on this question, but almost all of them suggest adding the following code because there is another layer "above" the FullAjaxExceptionHandler that is sending a plain redirect instead of doing an Ajax redirect (see this similar question): if ("partial/ajax".equals(request.getHeader("Faces-Request"))) { // JSF ajax request. Return special XML response which instructs JavaScript that it should in turn perform a redirect. response.setContentType(

FullAjaxExceptionHandler does not redirect to error page for Ajax request

夙愿已清 提交于 2020-01-16 01:01:32
问题 I know there has been numerous questions here on this question, but almost all of them suggest adding the following code because there is another layer "above" the FullAjaxExceptionHandler that is sending a plain redirect instead of doing an Ajax redirect (see this similar question): if ("partial/ajax".equals(request.getHeader("Faces-Request"))) { // JSF ajax request. Return special XML response which instructs JavaScript that it should in turn perform a redirect. response.setContentType(

NoClassDefFoundError Exception when I use Omnifaces::Ajax::update() method

好久不见. 提交于 2020-01-15 12:29:06
问题 When I try to run the sample code of Omnifaces library about Ajax::update() method, i get the NoClassDefFoundError exception; I suppose that it concerns about the client-ids or ids of components, but I do not know how to avoid this exception. The welcome.xhtml page is the following <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns

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

送分小仙女□ 提交于 2020-01-13 04:55:06
问题 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 2.6.1. But right when I add the omnifaces jar to the application classpath (/lib) this one fails at start up, giving the next exception: 13:21:52,024 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 78)

h:outputStylesheet not inserted when using FullAjaxExceptionHandler

回眸只為那壹抹淺笑 提交于 2020-01-06 03:45:29
问题 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 loaded in the <h:body> section like the following. <h:outputStylesheet name="css/theme.css" library="theme" /> I found the BalusC answer at h:body not rerendered when using FullAjaxExceptionHandler to be helpful for changing the body tag. But I'm stumped on why the

NoClassDefFoundError: javax/faces/component/UIViewAction on TomEE startup

随声附和 提交于 2020-01-06 01:58:08
问题 I'm trying to migrate a web project (all JARs in WEB-INF/lib ) to a maven web project (all JARs in pom.xml ). This project uses following libraries: JSF 2.2 PrimeFaces BootsFaces OmniFaces It runs on TomEE. The following error appears on TomEE startup: NoClassDefFoundError: javax/faces/component/UIViewAction But JSF2 library is provided by TomEE on classpath. Here is my pom.xml . <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

h:selectManyCheckbox with omnifaces.SelectItemsConverter does not preselect the items

≡放荡痞女 提交于 2020-01-05 04:03:31
问题 I'm using JSF 2.0, PrimeFaces and OmniFaces. I have 2 dialogs with <h:selectManyCheckbox> . The first dialog creates a new Course : The Disciplina s are presented as: <h:selectManyCheckbox id="disciplinas" value="#{cursoMBean.listaDisciplinasDoCurso}" converter="omnifaces.SelectItemsConverter"> <f:selectItems value="#{cursoMBean.listaTodasDisciplinas}" var="disciplina" itemValue="#{disciplina}" itemLabel="#{disciplina.nome}" /> </h:selectManyCheckbox> This works fine. When I select some

Bug report form on error page

本小妞迷上赌 提交于 2020-01-03 18:59:12
问题 I have a JSF web application in JBoss 7.1 and Richfaces 4.1. I tried to configure a custom error page in web.xml but came across the problem, that this does not work for AJAX requests. As a solution I tried to use Omnifaces FullAjaxExceptionHandler which displays the error page fine. However I wanted to add a form that allows the user to enter additional information and send this, along with the exception, as an email to me. The problem is that on the error page, the submit buttons does not

PrimeFaces PickList with OmniFaces validateAll leads to NullPointerException

谁说我不能喝 提交于 2020-01-02 04:16:12
问题 What I actually want is two PrimeFaces <p:pickList>s that get validated with OmniFaces' <o:validateAll> component. Note, that validating a pickList with <o:validateAll> has a problem, which can be solved as described in issue 488 in the OmniFaces issue tracker. So a very simple example of my requirement looks like this: <h:form id="form1"> <p:messages id="messages"> <p:autoUpdate/> </p:messages> <p:pickList id="pick1" value="#{dummy.dualListModel}" var="item" itemLabel="#{item}" itemValue="#