icefaces

Why does event listener not get called?

Hi all, I'm using ice:menuPopup to dinamically create menus on tree nodes. In jsf page I've something like this <f:facet name="content"> <ice:panelGroup id="faccont" style="display: inline" menuPopup="qtaPupMenu"><ice:menuPopup imageDir="/images"> <ice:menuItems id="qtaPupMenu" value="#{item.userObject.menuModel}"/> ...

How do you set the message for an ICEfaces ice:inputFile filename validation error?

Setup: ICEfaces 1.8.2, Java EE 5, JSF 1.2. I'm using an ice:inputFile tag to allow the user to upload a PDF file, and an ice:messages tag to provide error feedback to the user: <ice:inputFile fileNamePattern=".+\.pdf" uniqueFolder="false" uploadDirectory="#{FileController.fileUploadDirectory}" uploadDirectoryAbsolute="true" actionListe...

Hiding expand/collapse +/- buttons

Is it possible to hide the +/- buttons for an ICEFaces tree node that is a leaf? They still appear on my leaf nodes even when I mark that node specifically as a leaf and say node.setAllowsChildren(false). ...

Getting a column value from ice:dataTable in the validator of another column

My ice:dataTable looks like below:- <ice:dataTable id="someTbl" var="someVar" value="#{someBean.someList}" > <ice:column> <f:facet name="header"> <ice:outputText value="#{msgs.tblCol1}"> </f:facet> <ice:outputText value="#{someVar.name}"/> </ice:column> <ice:column> <f:facet name="header"> <ice:outputT...

What causes a "Cannot register a null resource" error in ICEfaces?

Java EE 5, JSF 1.2 with Facelets, ICEfaces 1.8.2 What can cause a "Cannot register a null resource" error in ICEfaces, using an ice:outputResource tag? From the ICEfaces source code, it looks like it's when the resource is null (duh), but I'm positive that it isn't. Are there any other possible causes? ...

How to Dynamically adding fields in JSF?

HI All, I am desperately looking for the assistance on adding and removing the fields and rows using JSF. I am using ICE Faces for the rich UI look. The following is my problem: I have to add one text box and two buttons (+) and (-) in a row. When user clicks on the + button, one new row should be added with the above components. When...

Anchor tag on ICEfaces component

I'm looking for a way to set focus to an ICEfaces component by means of an anchor tag. For instance, when a field fails validation I want to output something like this: <a href="#xyz"> Field XYZ</a> failed validation and then, at the XYZ component, have something like: <ice:inputText id="XYZ" anchor="xyz"> This would enable the ...

problem in javascript validation , how to make call to javascript from jsf/icefaces?

Hi, problem in javascript validation , how to make call to javascript ? <html> <head> <script type='text/javascript'> function validate() { alert('hi'); } </script> </head> < body> <ice:panelGrid> <ice:inputText/> ..... ... ... </ice:panelGrid> <ice:commandButton onclick="validate();"/> </body> </html> I am not ...

problem in javascript

Hi, problem in javascript validation , how to make call to javascript ? <!DOCTYPE html> <f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component"&gt; <html> <head> <script...

facelet composition control (custom tag) with binding

I'm having problems with creating a Facelet Composition Control (= custom tag). That's the component's template (numberinput.jspx). I declared the in my custom-taglib.xml. So far the inclusion works using this code: <ft:numberInput nullablenumber="true" cid="myId" bind="#{myBean.mySpecialComponent}" ...

What's the best way to create parametrized multi-purpose custom facelet tags

I created a Facelet tag for rendering a textinput with a label. That's very helpful when for avoiding repeating the same code over and over again. Though I'm struggling with handling different use cases within this single tab (date vs. text, required vs. not required, textarea vs. normal text etc.) I ended up with having multiple tags...

JSF: Is there a way to create animation effect when insert a new record into table?

I've been googling this question a lot and I dont seem to find a solution. I wonder if any developer out there that able to achieve this? I know there are couple ajax framework out there for JSF like Richfaces, primefaces, icefaces ... I have look at their showcase, and could not seems to find what I am looking for. ...

Can I trigger an IceFaces action using JavaScript?

If I have a simple button: <ice:panelGroup> <ice:commandButton value="foobar" action="#{fileManager.openNoFlashVisiblePopup}" /> </ice:panelGroup> Is it possible to trigger the action openNoFlashVisiblePopup using just javascript? I know that there IceFaces has a JavaScript bridge but I don't know see a...

How to Hide/view the portlets in liferay Portal?

Hello every! I m developing portlets on liferay portal using icefaces, i want to hide/view the portlet programmaticaly from an action written in my managed bean. so please help me ASAP? Thanks in advance... ...

Why is one of the combo boxes empty when I open the same application in two windows?

I am working with icefaces for 3 months. Now I am facing concurrent issues when I open the same application in 2 windows at the same time. For the 1st window values for combobox are coming properly, but for the 2nd window the combo box is empty. I am using IE6, Apache Tomcat 6 and Icefaces 1.8. I also made com.icesoft.faces.concurrentD...

Request scope backing bean... not in request

I have a backing bean (say MyPageBean) with request scope, but it seems to be in session because, navigating my application, when I visit the page myPage, I always get the same instance. I'm using JSF 1.2, IceFaces 1.8.2 and JBoss 5.1.0 ...

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

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 c...

JSP:include is not rendering the included file

I just created a new IceFaces application and I'm trying to include a navigation bar in all of the pages. When I use the jsp:directive.include tag the file is included, but when I use jsp:include it does not seem to be loaded. In fact, when I check the HTML source code in my browser, it's like the included file was completely empty. I do...

JSF datatable, request parameters and actions

Hi guys, I'm currently struggling with request parameters in JSF 2 and Icefaces 2 (shouldn't make a difference to only JSF 2) and would like to ask you about the recommended way to handle / process parameters. The problem I encounter occurs when using an ice:dataTable. Every time I hit the submit button (or fire a row selection event by...

commandLink does not work on the first click

I've found some questions that seem related to this one, but none describes exaclty what is happening to my web app. Here it goes: it's a very simple app, with a left menu bar, a header and a central panel to show some texts. The menu bar has a lot of commandLinks which will define which page is going to be loaded in the central panel....