5 Replies Latest reply on Jun 11, 2005 1:39 PM by martingi

    Window decorations and controls

    martingi

      Is it possible not to show the decorations and controls (portlet title, window states, ...) of a window by specifying this simply with a descriptor/ not in the portlet code? Or maybe to override these settings with some custom values in the descriptor, regardless if the values are coded into the portlet?

      Thanks

        • 1. Re: Window decorations and controls


          The portlet controls are displayed by the theme. You can disable all content external to the actual portlet content by creating a custom theme.

          • 2. Re: Window decorations and controls
            martingi

            Actually I'm using my custom theme, but the decorations and controls are still being displayed. This is because the
            org.jboss.portal.core.theme.render.impl.DivDecorationRenderer is instantiated, which generates a table e.g. with the portlet title and I do not how to avoid this.

            This is what my portal-themes.xml looks like

            <themes>
             <theme>
             <name>myportal</name>
             <link href="/myportal.css" title="" rel="stylesheet" type="text/css" media="screen" />
             </theme>
            </themes>

            Am I missing an element here to prevent decorations & controls rendering?

            • 3. Re: Window decorations and controls

              I haven't test this yet, but you may want to try using the emtpyRenderer instead of the divRenderer. I believe thats what its there for.

              • 4. Re: Window decorations and controls

                We decompiled those darn divRenderer classes... and made our own....

                That's what you gotta do to get rid of those pesky window controls.

                • 5. Re: Window decorations and controls
                  martingi

                  Thanks, this works for me with the emptyRenderer. I changed the element in default-portal.xml now to

                  <property>
                   <name>org.jboss.portal.property.renderSet</name>
                   <value>emptyRenderer</value>
                   </property>