Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8371443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:09:43+00:00 2026-06-09T14:09:43+00:00

I am using Liferay 6 and MVC portlets. I use jsp and extjs to

  • 0

I am using Liferay 6 and MVC portlets. I use jsp and extjs to render my portlets. When I maximize/minimize, the current state of the portlet is lost. I would like to retain the state of the portlet even after maximizing/minimizing. How can I achieve this?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:09:44+00:00Added an answer on June 9, 2026 at 2:09 pm

    Portlet has two phases: action phase & rendering phase. Action phase will be run when some state must be change, eg. when form-submit is done. Rendering phase will be always run, also after maximizing/minimizing.
    If you don’t want that in rendering phase some state is changed, put this logic to action phase.

    By MVC-Portlet you have two methods for handling each phases:

    public class MyLiferayTestPortlet extends MVCPortlet {
        @Override
        public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, PortletException {
            System.out.println("action");
            //here you can change the state
        }
    
        @Override
        public void doView(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException {
            System.out.println("rendering");
            //here you can prepaire the rendering of jsp
    
            //print the window state
            ThemeDisplay td = (ThemeDisplay)renderRequest.getAttribute(WebKeys.THEME_DISPLAY);
            System.out.println("isStateMaximized: " + td.isStateMaximized());
        }
    }
    

    Here you can read about two phases of portlet:
    http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/understanding-the-two-phases-of-portlet-executi-4

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started to use Liferay and I want to develop a portlet using
I'm using jsp of out-of-box portlet like feed.jspf in Liferay 6: String articleId =null;
I am using liferay ui tabs in my project. I would like to call
I am trying to write a portlet for Liferay (using Tomcat and Spring) and
I'm using liferay portal for a website. All of my portlets are based on
I'm loading yui.js 3.3.0 version file from portlet but liferay its using 3.2.0 yui.js
I am trying to create a simple portlet for Liferay 5.2.2 using Grails 1.2.1
I can easily create Liferay portlets and themes individually using the Liferay plugin SDK.
I have a JSP, say view.jsp , that's using the basic Liferay search container
I am trying to make a hook for the Liferay announcements portlet using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.