1 Reply Latest reply on Apr 17, 2008 9:03 AM by Nicolas Ploquin


    Nicolas Ploquin Newbie


      I've read lot of pages about that... But When I want to reproduce all what I've read, it doesn't work... That why I post a new subject in order to help me...

      The problem : I just want to add a custom-window-state called "solo" (in order to display the portlet on page without any other portlet, header, footer, etc...).

      I've add the following lines on my application portlet.xml :


      On the *-object.xml, I've added :


      On all my personal layout, I've add :

       <uri state="maximized">/layouts/generic/maximized.jsp</uri>
       <uri state="solo">/layouts/generic/solo.jsp</uri>
       <region name="top"/>
       <region name="LeftColumn"/>
       <region name="RightColumn"/>
       <region name="bottom"/>

      And I declare my /layouts/generic/solo.jsp like that :

      <%@ page import="org.jboss.portal.server.PortalConstants"%>
      <%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p" %>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      <html xmlns="http://www.w3.org/1999/xhtml">
       <title>Printed Mode</title>
       <meta http-equiv="Content-Type" content="text/html;"/>
       <!-- to correct the unsightly Flash of Unstyled Content. -->
       <script type="text/javascript"></script>
       <!-- inject the theme; default to the HGPP-Theme theme if nothing is selected for the portal or the page -->
       <p:theme themeName='Printed-Theme'/>
       <!-- inject header content that was generated by the portlets on the requested page -->
      <body id="body">
       <p:region regionName='solo' regionID='regionSolo' />

      I've declare a "Printed-Theme" without header, and in the css, I've add

      .portlet-mode-solo {
       background-image: url( images/ico_16_maximize.gif );
       background-repeat: no-repeat;
       width: 16px;
       height: 16px;
       float: left;
       display: inline;
       cursor: pointer;
       padding-left: 3px;
      .portlet-mode-solo:hover {
       text-decoration: none;

      My application is like that :

      + layouts
       + generic
       + solo.jsp
       + maximized.jsp
       + ...
      + themes
       + Printed-Theme
       + images
       + portal_styles.css
       + ...
      + WEB-INF
       + *.layouts.xml
       + *.themes.xml
       + porlets-object.xml

      The problem is : the state "solo" doesn't work... The render is like "normal" state and I havn't any error message...

      Thank you in advance for your help !!