icefaces

Server-initiated Rendering: EJB -> FacesContext?

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

facesMessage and ice:Messages

Hi Guys, Quick question. Is it possible to associate a facesMessage with a particular ice:Messages tag? i.e. I create facesMessage.add("Error message one"); facesMessage.add("Error message two"); And in my page I have <ice:messages style="float:center;color: #FF0000" id="errorMessageOne"/> <ice:messages style="float:center;color: ...

Request attributes in jsf / icefaces behaves strange (survive request end)

I have the following code in a listener method: FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("time", new Date()); When a button is clicked the following code is executed System.out.println(FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get("time")); One could except that "time" ...

JSF/Icefaces RequestDispatcher

I am trying to write a component in JSF to read legacy JSP files. I am using RequestDispatcher.include to do this...The only problem is that externalContext.getRequest().getRequestDispatcher(...) returns an UnsupportedOperationException in Icefaces. Is there a way round this? Thanks. ...

How to register a custom renderer in JSF?

We have numerical values in our database, representing a two-value-state. Of course this would perfectly match a boolean, but oracle has no such datatype. The NUMBER(1,0) type from the database is matched to a java.lang.Short type in Java (sometimes they used a NUMBER(*,0) to represent booleans, which are matched to java.math.BigDecimal)...

How to map IceFaces <ice:selectInputDate> component on a java.util.Calendar field?

Does anybody knows how can component <ice:selectInputDate> be mapped on a java.util.Calendar field, not java.util.Date? I am using from IceFaces version 1.8.2, the component <ice:selectInputDate>. This component requires to be bound with a java.util.Date proeprty. For example, value="#{bean.myDate}", the myDate field must be of type jav...

[IceFaces] Why are validators of unchanged components called?

I have a IceFaces-form and several input fields. Let's say I have this: <ice:selectOneMenu id="accountMenu" value="#{accountController.account.aId}" validator="#{accountController.validateAccount}"> <f:selectItems id="accountItems" value="#{accountController.accountItems}" /> </ice:selectOneMenu> and this: <i...

How do I pass parameters between request-scoped beans

This is a question that has been bothering me for sometime. My application uses ICEFaces for our UI framework and Spring 2.5 for Dependency Injection. In addition, Spring actually maintains all of our backing beans, not the ICEFaces framework, so our faces-config is basically empty. Navigation is not even really handled through naviga...

Command button requires two clicks (sometimes)

i am using icefaces 1.8.2. For some command buttons, sometimes i need to click the button twice. previously whole applivcation was working fine with single click. after upgrade to 1.8.2,i am facing this problem......Any suggestion,what could be the reason??? Thanks ...

icefaces modal popup timeout issue

Hi Guys, Have a question regarding something which has been bugging me for some time now.I'm using icefaces to generate a modal popup with search fields.Clicking search kicks off a screen scraper for a particular website. My problem is this.If you enter some pretty generic terms,obviously the scrapper will take longer to complete which...

Problem in filling SelectOneMenu with data

in my ApplicationBean1.java class I have an Option[] attribute years and a filling method: public void buildYearOptions(){ int initialYear = 1900; int currentYear = Calendar.getInstance().get(Calendar.YEAR); int i = 0; for (int y = initialYear; y< currentYear; y++){ Option op = new Option(y, Integer.toString(y));...

storing separate session variables for different SelectOneMenu(s) in a dataTable JSF

I have a dataTable which has a value of a bean class which looks like this: public class myBean { private List<SelectItem> depList; With getters and setters. My getter calls a method buildDepList() which gets department names from the database and fills the depList. Here's how my JSP file looks like: <ice:dataTable id="speciali...

JSF Tag exception caused by f:setPropertyActionListener: Parent is not of type ActionSource

I have a web application written in plain old JSF that I want partially migrate to ICEfaces to use some of its components, namely confirmation panel for now. To use it, I changed my forms with links that require confirmation to ice: tag library from h:. Links I use should fire method that takes a parameter. The parameter is sent via f:se...

ICEfaces radio buttons

ICEFaces has strict restriction of closing every inner tag within the outer tag. But when creating a table layout how to incorporate various radiobuttons within different columns of the table. ...

Validators Icefaces

I have validator classes in my application that display error messages in the ice:messages control but due to design issues I want to change the validation to only let the user insert the correct input. For Example if the user presses numbers in a text field that should take the name, it just won't let him type numbers. How can I possib...

how to develop application like LifeRay Control panel

I want to develop an application like LifeRay control panel which has right navigation menu and a page that renders the clicked menu. My question is how to develop at for example as one portlet or multi portlet taking into considaration (portlet communication)? and how to handle navigation inside portlet? I'm using Icefaces(JSF) for po...

How to get selected datatable row using icefaces ?

I want to get selected row data from ice:datatable ? Here is me code , please give me your suggestion to get selected row data using rowselector. Backingbean: public void rowSelectionListener(RowSelectorEvent event) { System.out.println(event.getRow()); } jspx code: <ice:rowSelector id="selected" selectionListener="#{invent...

How to set tabindex on panelTabSet in ICEfaces

How can I specify the tabindex of a panelTabSet? I have tried setting it on the both the panelTabSet: <ice:panelTabSet id="foo" tabindex="4"> ... and on the panelTabs <ice:panelTab id="bar" tabindex="4"> ... What am I missing? ...

how to navigate through icefaces jsp portlet pages?

I'm trying to navigate through pages in icefaces portlet(Liferay) but I can't get it to work. <navigation-rule> <from-view-id>/AdmissionApplication/Application.iface</from-view-id> <navigation-case> <from-outcome>y</from-outcome> <to-view-id>/StudentPage/StudentMainPage.iface</to-view-id> </navigation-case> </navigation-rule> and her...

Using JSF with multiple tabs in one browser

By default JSF appears to be very 'stateful'. I need to allow people to use our application with multiple tabs doing many things in different parts of the application. I can't seem to find decent instruction on making this happen without a whole lot of re-engineering. We do not currently use ICEfaces, but I just found this in the ICEfa...