icefaces

JSF Backing Bean constructor called multiple times

怎甘沉沦 提交于 2019-12-10 17:09:20
问题 I'm trying out JSF 2.0 (after using ICEfaces 1.8 for the past few months) and I'm trying to figure out why in JSF 2.0 my backing bean constructor gets called multiple times. The bean is supposed to be instantiated once upon creation, but the "Bean Initialized" text shows up whenever I click the commandButton, indicating a new Bean object being instansiated. The facelet page: <?xml version='1.0' encoding='UTF-8' ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf

Icesfaces vs Myfaces vs Primefaces

北慕城南 提交于 2019-12-09 15:42:18
问题 I am starting out a new project that involves the use of JSF 2.0. From my initial reading, the Mojarra and Apache Implementation of the project covers the basic components that you will need. But I know that user's would seek gui with better presentation such as panel tab, accordion, slider etc... Currently, there are other implementation that I am seeing, the Primefaces, RichFaces and Icefaces. But I cant find a good article that discusses which among the three are the best. I have used

page does not refresh after an action is called

北战南征 提交于 2019-12-08 10:26:36
问题 I have commandLink with an actionListener that calls a method to change the value of text . The same commandLink has an action that reloads the page. When I click the commandLink , the actionListener is called. But the action only is completed --showing the updated value of text-- when I refresh the browser. Why isn't the outputText being automatically updated? Some code: home.jspx (...) <f:view> <table id="main_table"> <tr><td width="160px"><jsp:directive.include file="./logo.jspx" /></td>

JavaEE/NetBeans Library Referencing

淺唱寂寞╮ 提交于 2019-12-08 07:12:55
问题 I'm going rephrase my previous question. We have a website on our server that was developed by our parent company (across the globe in Taiwan) using NetBeans. Nothing on the server is from NetBeans, no references, build files, project files, or anything. Just the necessary files the server needs to run the website. I've been given the responsibility of maintaining this website because they no longer support us. So, I copied/pasted the entire website, from the domain folder, over to my local

Long Running Task in Java EE WebApp + icefaces

ⅰ亾dé卋堺 提交于 2019-12-08 00:33:26
问题 I don't have much knowledge on Java EE but am currently learning it. I've come up with a project which involves a long running task (up to several minutes) invoked by the user. The task consists of several steps. Of course I would like to show the progress to the user. The project uses Java EE with JPA, JSF and Icefaces. It runs on Glassfish. An experienced colleague adviced the following pattern to me: Create a stateless, asynchronous EJB which creates a response object and processes the

Is it possible to update the app without restarting the server in JSF?

故事扮演 提交于 2019-12-07 04:14:21
问题 I'm working with Eclipse 3.5, Tomcat 6, JSF 1.2 and IceFaces 1.8. Whenever I update any file in my app, I have to restart the server to see the latest changes. How to update my app without restarting the server? The server option "Automatically publish when resource changes" is already selected. Update : If I change the main file, the changes can be seen immediately. However, if I update any file used in a <jsp:directive.include /> tag, I must restart the server to check the changes or update

How to override default file upload h:message in ICEfaces

半世苍凉 提交于 2019-12-07 01:32:31
问题 i am using the ace:fileEntry component to upload files and after successful upload i get the message that: 'File Entry' uploaded successfully 'filename'. and i want to override this message and display other message (some kind of a summary for parsing that uploaded file), any ideas how ? here's my code: <h:form> <ace:fileEntry id="fileEntryComp" label="File Entry" relativePath="uploaded" fileEntryListener="#{mybean.uploadFile}"/> <h:commandButton value="Upload Excel File" /> <h:message for=

How to override default file upload h:message in ICEfaces

泪湿孤枕 提交于 2019-12-05 05:28:14
i am using the ace:fileEntry component to upload files and after successful upload i get the message that: 'File Entry' uploaded successfully 'filename'. and i want to override this message and display other message (some kind of a summary for parsing that uploaded file), any ideas how ? here's my code: <h:form> <ace:fileEntry id="fileEntryComp" label="File Entry" relativePath="uploaded" fileEntryListener="#{mybean.uploadFile}"/> <h:commandButton value="Upload Excel File" /> <h:message for="fileEntryComp" /> </h:form> You have to create your own message and send it. It will overwrite the

How can a JSF/ICEfaces component's parameters be updated immediately?

南笙酒味 提交于 2019-12-04 18:22:50
I have an ICEfaces web app which contains a component with a property linked to a backing bean variable. In theory, variable value is programmatically modified, and the component sees the change and updates its appearance/properties accordingly. However, it seems that the change in variable isn't "noticed" by the component until the end of the JSF cycle (which, from my basic understanding, is the render response phase ). The problem is, I have a long file-copy operation to perform, and I would like the the inputText component to show a periodic status update. However, since the component is

Server-initiated Rendering: EJB -> FacesContext?

*爱你&永不变心* 提交于 2019-12-04 15:37:29
I've already asked this question on the Icefaces forum, but meanwhile I realized that this is a more generic problem. I'd like to update parts of a JSF page when I get a message in my MDB. The problem is, how do I get the FacesContext from the EJB container? In the message processing function FacesContext.getCurrentInstance() returns null. I've also tried to make a JSF managed bean be a MDB, but I couldn't (it seems you can't have both in the same class?). Since I'm a beginner in the JSF world I'm kind of stuck now. Is there a way to make it work? (Glassfish v3 + Netbeans 6.8, JSF2 + Icefaces