My liferay portlet doesn't work!!
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
My liferay portlet doesn't work!!  XML
Forum Index -> Portals & Portlets
Author Message
crgio

Joined: 10/06/2008 00:00:00
Messages: 5
Offline


Hi...

I developed a portlet with JSF an ICEfaces, using liferay portal 5.0 and ICEfaces 1.7, I followed the developer's guide to make it, the portlet deployed correctly but the firebug catched 2 errors:

$element is not defined
http://localhost:8080/portal/web/guest/home
Line 461

and

"Tb6xb-M3P3-oqwwXYlL7rg:1:configuration-script".asElement is not a function
http://localhost:8080/portal/web/guest/home
Line 460

the javascript doesn't work either,

setFocus is not defined

iceSubmit is not defined

does anyone have idea!!!!
crgio

Joined: 10/06/2008 00:00:00
Messages: 5
Offline


Thanks to everyone...

The problem was resolved, based in the Neil Griffin (sample-icefaces-jsf-1.1-sun-facelets-portlet) I found the solution, some jars were missing
andorscape

Joined: 20/01/2007 00:00:00
Messages: 3
Offline


could you please specify which exact jars you were missing cause i seem to have the same problem

cheers
crgio

Joined: 10/06/2008 00:00:00
Messages: 5
Offline


Hi...

I don't remember exactly which jars was missing, but this are the jars in my project.

backport-util-concurrent.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-el.jar
commons-fileupload.jar
commons-logging.jar
icefaces-comps.jar
icefaces.jar
jsf-api-1.2.jar
jsf-impl-1.2.jar
commons-lang.jar
commons-validator.jar
oro.jar
jstl.jar

all imported, not taken from liferay.
andorscape

Joined: 20/01/2007 00:00:00
Messages: 3
Offline


the issue was related to icefaces compressing resources

when i switched it off some javascript errors disappeared

i am still having a hard time putting a gmap portlet together in the ext env
caski

Joined: 21/08/2009 00:00:00
Messages: 1
Offline


Yes removing the compression did solved the problem.

You should have this in your web.xml
<context-param>
<param-name>com.icesoft.faces.compressResources</param-name>
<param-value>false</param-value>
</context-param>

Here the Jars I have right now. This is for icefaces+facelet portlet.
backport-util-concurrent
icefaces
icefaces-comps
icefaces-facelets
jsf-api
jsf-impl

My portlet is working as expected under Liferay 5.2.3 using tomcat 6.
venkat_sankar

Joined: 20/01/2010 00:00:00
Messages: 2
Offline


Hi,

I have the same issue,("Icesubmit is not defined" , because of this, none of the links in the page, works) but it doesnt happen all the time, once in a while i get this error and after restarting the server, it works for some time and the issue comes up again. So for now, restarting the server is the only solution we have. Can someone help us on this.

P.S : i have crossed checked the jars and also i have changed the value of com.icesoft.faces.compressResources in web.xml to false. It didnt work.

TIA

Rgds,
Venkat
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team