icefaces-3

JSF Session timeout and auto redirect to login page without user intraction eventhough Ajax push is active

我们两清 提交于 2020-01-24 00:15:14
问题 I'm using Iceface Icepush in my JSF application to send some notifications to client. Because of this session timeout never happen on my application. I've specified session timeout 15 mins. My requirement is, server should invalidate session if there is no actual client interaction for 15 mins. I did some search in iceface forum and added this context param in web.xml <context-param> <param-name>org.icefaces.strictSessionTimeout</param-name> <param-value>true</param-value> </context-param>

Which scope to use for a series of pages, each dependent on the previous page?

南笙酒味 提交于 2020-01-03 03:06:06
问题 Currently I have four pages that are each backed by their own RequestScoped managed bean. An example of this would be the following... backing search.xhtml @RequestScoped SearchBean backing result.xhtml @RequestScoped ResultBean backing detail.xhtml @RequestScoped DetailBean backing action.xhtml @RequestScoped ActionBean In each page (except for the search page), I inject the bean from the previous page to access the input parameters. For instance... @RequestScoped public class Result {

JSF: javax.faces.FacesException: Cannot add the same component twice: vaz4n2-retrieve-update

非 Y 不嫁゛ 提交于 2019-12-22 12:37:05
问题 I am a JSF beginner. I try to implement ICEfaces 3.0 component in Eclipse 4.2 (Juno). I had implemented & run it using Apache Tomcat 7.0. It showing the following error in window: Cannot add the same component twice In console bar it shows as : javax.faces.FacesException: Cannot add the same component twice: v8z4ho2-retrieve-update My JSF Code <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1

Prevent caching data of a dataTable

眉间皱痕 提交于 2019-12-13 20:07:44
问题 I have a ice:dataTable and in each row, there is a inputText . The record list is updated every time when fire a valueChangeListener on some other component. When it resets the record list, browser shows the previous values for inputText fields in table rows. I tried both Filter and <meta/> tags. It didn't work for me. Can somebody tell me how to get rid of this problem? (Backing bean keeps the actual record list) 回答1: This is a JSF problem, take a look at the following answer for details

How to use Javascript in jsf action with Icefaces to update page status ?

人走茶凉 提交于 2019-12-12 10:15:55
问题 How do I fire either server side or client side event handler on completion of h:commondButton action ? This server side process takes sometime to complete. When I click the button, it needs some time to finish the work and update the UI. I want to fire something, when UI gets updated. I'm new to JSF. Please help me with this. Thanks! 回答1: Icefaces has a javascript library that can queue events on client side. Icefaces refreshes DOM after the completion of action so you can queue an event at

Icefaces 3.1 getting session timeout on first partial submit

独自空忆成欢 提交于 2019-12-11 20:25:37
问题 I have a single page application in icefaces 3 using Mojarra 2.1.6 The application is like this there are 3 radio buttons on the top and a data table with input fields. The problem is that when I open the site for the first time in the browser the the site opens ... but the moment there is a partial submit from any part of the page , the session expires. After the page is reloaded the page works smoothly The site was running peacefully in 1.8.2 but we are thinking if we should upgrade to

Why ace:fileEntry does not work?

不想你离开。 提交于 2019-12-11 14:58:10
问题 I'm using jsf 2.0 and icefaces 3 component to upload files: <h:form enctype="multipart/form-data"> <ace:fileEntry id="file-entry" relativePath="/files/" maxFileCount="10" maxFileCountMessage="Limited to 10 files uploaded concurrantly." fileEntryListener="#{uploadFileBean.sampleListener}" maxFileSize="6291456" maxFileSizeMessage="Submitted file is too large." maxTotalSize="18874368" maxTotalSizeMessage="Total size of submitted files is too large." required="true" requiredMessage="The file is

Which scope to use for a series of pages, each dependent on the previous page?

删除回忆录丶 提交于 2019-12-07 12:01:28
Currently I have four pages that are each backed by their own RequestScoped managed bean. An example of this would be the following... backing search.xhtml @RequestScoped SearchBean backing result.xhtml @RequestScoped ResultBean backing detail.xhtml @RequestScoped DetailBean backing action.xhtml @RequestScoped ActionBean In each page (except for the search page), I inject the bean from the previous page to access the input parameters. For instance... @RequestScoped public class Result { @ManagedProperty("#{search}") private Search search; private ResultData resultData; private Service service;

JSF: javax.faces.FacesException: Cannot add the same component twice: vaz4n2-retrieve-update

孤人 提交于 2019-12-06 11:29:57
I am a JSF beginner. I try to implement ICEfaces 3.0 component in Eclipse 4.2 (Juno). I had implemented & run it using Apache Tomcat 7.0. It showing the following error in window: Cannot add the same component twice In console bar it shows as : javax.faces.FacesException: Cannot add the same component twice: v8z4ho2-retrieve-update My JSF Code <?xml version='1.0' encoding='UTF-8' ?> <!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

Websphere 8.5: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log

 ̄綄美尐妖づ 提交于 2019-12-06 04:06:00
问题 I developed an JSF-App with ICEFaces 3.0.1. With Tomcat and Glassfish, the App works fine. Now I wanted to test it on a WebSphere Application Server 8.5.0.0. The App starts but when I do some action, it crashes. I'm using the following libs: antlr-2.7.6.jar commons-collections-3.1.jar commons-lang-2.5.jar dom4j-1.6.1.jar icefaces-ace.jar icefaces-compat.jar icefaces.jar icepush.jar iText-5.0.4.jar jxl.jar slf4j-api-1.6.1.jar hibernate3.jar javassist-3.9.0.GA.jar poi-3.8-20120326.jar xpp3-1.1