• Welcome to KonaKart Community Forum. Please login or sign up.
 

Call SelectCat.do... in a portlet

Started by Manu, October 13, 2011, 03:08:40 pm

Previous topic - Next topic

Manu

Hi !

KonaKart is now running into Liferay, and i have created a new portlet with links.
I want to "refresh" the konakart portlet on the good page.



I see that 2degrees website URL are like this :
https://www.2degreesmobile.co.nz/shop?p_p_id=konakart_portlet_WAR_konakart_portlet&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_konakart_portlet_WAR_konakart_portlet__spage=%2FSelectProd.do&_konakart_portlet_WAR_konakart_portlet__sorig=%2FSelectCat.do%3FcatId%3D21&productId=141

So, I create the links in my portlet like this :

<a href="<liferay:actionURL portletName="konakart_WAR_konakart" portletMode="view">
<liferay:param name="_spage" value="/SelectCat.do?catId=22"/>
<liferay:param name="catId" value="22"/>
<liferay:param name="_sorig" value="/SelectCat.do?catId=22"/>
</liferay:actionURL>">
Tools</a>


But when I click on my link, the portlet stay on the Welcome.do page.

How tell to the portlet to call the specific action (here SelectCat.do) ? And to get parameters like catId, do i have to modify the SelectCategoryAction or it must work with the original version ?