Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
dominick campbell
Eclipse Indigo, Icefaces3, Liferay IDE 1.6
October 24, 2012 6:02 AM
Answer

dominick campbell

Rank: Junior Member

Posts: 55

Join Date: August 15, 2012

Recent Posts

Hey everyone

I am trying to develop a new portlet with eclipse indigo, icefaces 3, liferay IDE 1.6 for eclipse and liferay sdk 6.1.1

I created a new liferay portlet in eclipse with icefaces 3 but I am noticing that some of the icefaces components do not work.
For instance valueChangeListener on any ice: tag will not work as well as toggleOnClick for ice:panelCollapsible

Here is the list of jar files liferay IDE deployed into my new project
 1
 2icefaces-3.0.1.jar
 3icefaces-ace-3.0.1.jar
 4jboss-el-2.0.0.GA.jar
 5jsf-api-2.1.3-b02.jar
 6jsf-impl-2.1.3-b02.jar
 7liferay-faces-bridge-api-3.1.0-rc2.jar
 8liferay-faces-bridge-impl-3.1.0-rc2.jar
 9liferay-faces-portal-3.1.0-rc2.jar
10liferay-faces-util-3.1.0-rc2.jar


The project builds and loads without error but some tag properties do not work
 1
 2<f:view xmlns="http://www.w3.org/1999/xhtml"
 3        xmlns:ace="http://www.icefaces.org/icefaces/components"
 4        xmlns:ice="http://www.icesoft.com/icefaces/component"
 5        xmlns:c="http://java.sun.com/jsp/jstl/core"
 6        xmlns:f="http://java.sun.com/jsf/core"
 7        xmlns:h="http://java.sun.com/jsf/html"
 8        xmlns:icecore="http://www.icefaces.org/icefaces/core"
 9        xmlns:ui="http://java.sun.com/jsf/facelets"
10>
11<h:head />
12<h:body>
13
14<ice:panelCollapsible expanded="true" toggleOnClick="true">
15    <f:facet name="header">
16        <ice:outputText value="Organizations" />
17    </f:facet>
18    <ice:panelGroup>
19         <ice:selectOneMenu partialSubmit="true" valueChangeListener="#{HelpdeskBean.changeOrganization}">
20             <ice:selectItems value="#{HelpdeskBean.organizationList}"/>
21         </ice:selectOneMenu>
22
23...

 1
 2public class HelpdeskBean extends FMSStandardModel {
 3
 4...
 5
 6    /* aux functionality begin */
 7    public void changeOrganization(ValueChangeEvent event) {
 8System.err.println("xxx : changeorganization(event)");
 9        selectedOrganization = (Organization) event.getNewValue();
10        loadUserData();
11    }

Is there an eclipse indigo, icefaces 3, iferay ide 1.6, liferay sdk 6.1.1 tutorial out there with examples of how to setup portlets in eclipse. The themes work great with no issues, but the portlets do not seem to fully work with icefaces, and creating an ext hook will actually error out and delete the entire liferay sdk (and any work you may have saved in there). I think that these are bugs but i cannot find on the liferay site an actual step by step tutorial that also uses more complex attributes such as the valuechangelistener

Thanks
Neil Griffin
RE: Eclipse Indigo, Icefaces3, Liferay IDE 1.6
October 30, 2012 10:23 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1973

Join Date: July 26, 2005

Recent Posts

In order to use the ice: components you would have to include the icefaces-compat.jar artifact in the WEB-INF/lib folder of your portlet WAR.

You would also have to add the following namespace to your Facelet view:

xmlns:ice="http://www.icesoft.com/icefaces/component"

We don't have a tutorial in place yet, but we do have a variety of working demos that you can follow as a pattern. In this case I would recommend the icefaces3-compat-portlet demo.