Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Liferay Portlet mode

  Asked By: Adella    Date: Jan 19    Category: Java    Views: 1949
  

I wantto change liferay portlet mode in my code, would you mind helping
me by some example! Im using Icefaces.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Ujala Hashmi     Answered On: Jan 19

In one of my portlets I needed to have edit icon, and in onclick action it shows my own page. "edit.jsp"

so in portlet-ext.xml add

<init-param>
<name>edit-action</name>
<value>/ext/updates/edit</value>
</init-param>

and

<portlet-mode>edit</portlet-mode>

 
Answer #2    Answered By: Robin Bailey     Answered On: Jan 19

In jsp you could manage it via actionResponse.setPortletMode() but
because IceFaces doesn't allow you to catch actionResponse(expect
processAction() Method), you could manage it trough another way like
javaScript.Hope this code  help you(use it in your commandButton):
submitForm(document.hrefFm, URL);
which in URL is your currentURL expect that you change  your portletMode
or something else.

 
Didn't find what you were looking for? Find more on Liferay Portlet mode Or get search suggestion and latest updates.




Tagged: