[ 
https://issues.apache.org/jira/browse/WICKET-1132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542754
 ] 

Thijs Vonk commented on WICKET-1132:
------------------------------------

ok, I have the ajax part working for 99%.  I can run almost all the wicket ajax 
examples.

The rendering of the full page was due to a Liferay specific parameter that has 
to be included in the URL. They use a custom WindowState 
(LiferayWindowState.EXCLUSIVE) tot tell the portal to only render the part that 
the portlet is requesting.

This does bring me to one other question. Is createResourceUrl only called when 
a Ajax callback link is generated? Otherwise I need to know when to call the 
EXCLUSIVE windowstate.


Then there are at least 2 issues at the moment. 
1. The redirect ajax link example does not work. It won't redirect on the first 
click and on the second click I get a stacktrace which start with: "Could not 
deserialize object using 
`org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory` 
object factory".
2. I can't open the sourcecode. The popup will open but it shows no content. 
This is probably again due to a Liferay specific WindowState 
(LiferayWindowState.POP_UP). So I need to now when a link is a popup and then 
add the POP_UP windowstate to the URL.

I'll look into these 2 things when I have a bit less other work.


> Ajax link is different from normal link on Liferay Portal
> ---------------------------------------------------------
>
>                 Key: WICKET-1132
>                 URL: https://issues.apache.org/jira/browse/WICKET-1132
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-portlet
>    Affects Versions: 1.3.0-beta4
>         Environment: Liferay 4.3.3 on Tomcat 6
>            Reporter: Thijs Vonk
>            Assignee: Ate Douma
>             Fix For: 1.3.0-rc2
>
>
> I created 2 simple Links a AjaxLink and a 'normal' link in a portlet. I 
> deployed this portlet on Liferay. The normal link works fine. But the Ajax 
> links doesn't work. In the generated HTML the url's look like this.
> AJAX link: 
> <a href="#" wicket:id="link" onclick="var 
> wcall=wicketAjaxGet('http://localhost:8080/web/guest/admin?p_p_id=MiniPortlet&p_p_action=1&p_p_col_id=column-1&p_p_col_count=1&;',null,null,
>  function() {return Wicket.$$(this)}.bind(this));return !wcall;" 
> id="id__MiniPortlet__WAR__MiniPortlet1____link1">
> Normal link:
> <a 
> href="http://localhost:8080/web/guest/admin?p_p_id=MiniPortlet_WAR_MiniPortlet1&amp;p_p_action=1&amp;p_p_state=normal&amp;p_p_mode=view&amp;p_p_col_id=column-1&amp;p_p_col_count=1&amp;_MiniPortlet_WAR_MiniPortlet1__wu=%2Fminiportlet%2F%3Fwicket%3Ainterface%3D%3A0%3Alink2%3A%3AILinkListener%3A%3A";
>  wicket:id="link2">
> At this moment the p_p_id is the part that I'm looking into. As you can see 
> they are different. And for Liferay this part tels it which portlet it should 
> send the request to. The normal link is the correct path to the portlet. as 
> this action actually works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to