0 Replies Latest reply on Aug 10, 2009 10:12 AM by ameo

    setWindowState on programmatically created portlets

    ameo Novice


      I create programmatically portlets on a page like this:

       Window createWindow = page.createWindow("title", ContentType.PORTLET, "myportlet";
       createWindow.setDeclaredProperty("theme.region", region);
       createWindow.setDeclaredProperty("theme.order", order);

      On this newly created portlet i want to set the window-state. Do you know how to set the state ?

      I tried the following with no luck:

      createWindow.setDeclaredProperty("windowstate", "minimized");