Friday, November 16, 2007

Liferay and ICEFaces Integration

I was trying to create ICEFaces portlet in Liferay. I was using Liferay 4.3.2. I downalod the sample portlet available from http://sourceforge.net/project/showfiles.php?group_id=49260 (file: sample-icefaces-sun-portlet-4.3.2.1.war). The war was working in tomcat 5.5. But to make it work with liferay-jboss-bundled I had to modify the library jar files. Due to conflict of the classes I had to remove following jar files:

  • el-api.jar
  • jsf-api.jar
  • jsf-impl.jat
  • log4j.jar

I hope I am not missing anything.

3 comments:

Anonymous said...

Oi, achei seu blog pelo google está bem interessante gostei desse post. Gostaria de falar sobre o CresceNet. O CresceNet é um provedor de internet discada que remunera seus usuários pelo tempo conectado. Exatamente isso que você leu, estão pagando para você conectar. O provedor paga 20 centavos por hora de conexão discada com ligação local para mais de 2100 cidades do Brasil. O CresceNet tem um acelerador de conexão, que deixa sua conexão até 10 vezes mais rápida. Quem utiliza banda larga pode lucrar também, basta se cadastrar no CresceNet e quando for dormir conectar por discada, é possível pagar a ADSL só com o dinheiro da discada. Nos horários de minuto único o gasto com telefone é mínimo e a remuneração do CresceNet generosa. Se você quiser linkar o Cresce.Net(www.provedorcrescenet.com) no seu blog eu ficaria agradecido, até mais e sucesso. If is possible add the CresceNet(www.provedorcrescenet.com) in your blogroll, I thank. Good bye friend.

Anonymous said...

Yes, JBoss comes with JSF 1.2 installed as a common library so you have to adjust your war file accordingly. It would be impossible to create a single ICEfaces example war that would run on all the platforms that Liferay supports.

For ICEfaces, we're working on making our build files a bit more sophisticated so that you can more easily pick the platform that you want to run on. I'll let the folks at Liferay know and maybe they can provide some documentation or more than one sample war.

Neil Griffin said...

Last week I checked in a new sample-icefaces-jsf-1.2-facelets-portlet into the Liferay plugins trunk at SourceForge.

This new portlet includes the Sun RI JSF 1.2 JARs that come with the ICEfaces distribution, and its designed to be used for Tomcat 6, GlassFish, and JBoss 4.2.

In order to use the JSF RI that comes with the portlet (and not the one supplied by JBoss), the web.xml file includes this:

<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>


Additionally, the el-api.jar and el-ri.jar files are not included in the portlet's WEB-INF/lib folder.