Combination View Flat View Tree View
Threads [ Previous | Next ]
Fateh Alchhabi
Icefaces Portlet Commandlink Response Very Slowly
January 30, 2013 2:11 AM

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

Hi All
I build Icefaces portlet For saving teachers courses in database and teacher can attached with the Course Some files(pdf,doc ...etc) and thoses files stores in the Document library
this portlet contains command-link to swtich between the courses
So if i click on the course link the portlet will refresh to view the course content and its attachment files
my problem is when i click this link its take Long time to update around 10to 20seconds
in my xhtml File i use this code

<div class="useful_links">
<ui:repeat value="#{}" var="course">
<h:commandLink value="#{course.courseCode}" action="#{courseLibraryViewBean.onChangeCourse}">
<f:setPropertyActionListener value="#{course}" target="#{courseLibraryViewBean.currentEntity}" />

i use in my managed bean @SessionScoped

in liferay-portlet.xml i add this attributes

in faces-config.xml i disable all the listener like

in web.xml all the same like in demo portlets
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="" xmlns:xsi=""
xsi:schemaLocation="" version="2.5">
<servlet-name>Faces Servlet</servlet-name>
<servlet-name>Faces Servlet</servlet-name>
<servlet-name>Resource Servlet</servlet-name>
<servlet-name>Resource Servlet</servlet-name>

Some times it take too long o change the couse so the session is lost and error message from iceface come-up "Network Connection Interrrupted"
Itry to use primefaces but same problem still Exist
any idea r help in this case

thanks in advances