Problems using it in a Liferay portlet
Brought to you by:
jmikus
If do not refresh the browser page first, selecting a
tab navigates to a blank page.
When portlet comes up, the as yet unselected tabs
each have the following appended to their links (and
will not operate correctly when clicked):
jspcReloadAddress=http://localhost:8080/c/portal/updat
e_layout&tabevent.tab1=true
If the browser is refreshed after first render, the
appendage changes (and clicking on it works as
expected) to:
jspcReloadAddress=http://localhost:8080/c/portal/layou
t?p_l_id=default&tabevent.tab1=true
This is using Liferay 4.0.0rc2 using the Tomcat 5.5
bundle and IE6.
Logged In: YES
user_id=1273365
Thanks for reporting this. I have not worked with Liferay,
I'll see what I can do.
As a general solution, it is possible to set a reload
address for JSP component, like this:
<jsp:include page="loginComponent.jsp">
<jsp:param
name="jspcReloadAddress"
value="http://localhost:8080/c/portal/layout?p_l_id=default"
/>
</jsp:include>
I will double check whether this functionality works correctly.
Michael.
Logged In: YES
user_id=1537033
Thanks for the suggestion of trying to reload the address.
I did not see any change in behavior though.
What I did was define an extra jc:tabpage to my
jc:tabcontrol (see below) and then check its link.
<jc:tabpage label="dummy" default="false">
<jsp:include page="/html/portlet/dummy.jsp">
<jsp:param
name="jspcReloadAddress"
value="http://localhost:8080/c/portal/layout?
p_l_id=default"
/>
</jsp:include>
</jc:tabpage>