4 Replies Latest reply on Mar 21, 2008 4:02 AM by antoine_h

    content rendering in minimize mode

      For some reason I understood that it should be possible to write content in Minimized mode, especially to render a minimized mode such as a project meteo.

      I am using 2.6.3, the processDispatch() method is called in minimized mode but the content is not rendered - only teh decoration is ....

      Is this a bug or a feature ?

        • 1. Re: content rendering in minimize mode
          claprun

          The current implementation does not render anything in minimized mode. If you feel that portlets should be given the opportunity to render something, please file a feature request in JIRA.

          • 2. Re: content rendering in minimize mode

            it's an optimization :-)

            otoh we could have metadata in jboss-portlet.xml that would say whether a portlet needs to be rendered for a minimized mode like

            <render-on-minimized>true</render-on-minimized>
            


            "PMN" wrote:
            For some reason I understood that it should be possible to write content in Minimized mode, especially to render a minimized mode such as a project meteo.

            I am using 2.6.3, the processDispatch() method is called in minimized mode but the content is not rendered - only teh decoration is ....

            Is this a bug or a feature ?


            • 3. Re: content rendering in minimize mode

              I understand that rendering a minimized mode is somewhat a matter of taste. I also understand that I could add a custom portlet mode. My choice would have to render the content if the fragment had be generated, and as a refinement the suggested optimization.

              Is it possible to define custom window state and to associate a layout to it like it is for the maximized window state?

              • 4. Re: content rendering in minimize mode
                antoine_h

                yes
                you can define a custom window state : look at the jsr-168 about this, and then at the implementation in jboss portal (doc, wiki, forum...)
                there are a few samples about that (for what I remember, there is an example of "half size maximized" or something like that).

                then, as you noticed it, you can have a specific layout for this window state.
                for what i remember, you define this in one of the descriptor, in the layout part (descriptors for the layout).
                follow the maximized layout sample about that.

                **********************************************
                you can do a lot of thing with the windows mode, the layouts etc...
                the portal is very flexible and allow many thing.

                So you should be able to do what you want to do by pluging/adapting your need in the minimized mode.

                if really there is something that does not fit your need, then you may build a new window mode.

                I guess the question to ask is : does your mode is a minimized mode, with some small adaptation ?
                or is it a very different mode, that should be implemented in its own mode ?

                **********************************************

                about the

                <render-on-minimized>true</render-on-minimized>

                I did not know about this new feature...
                nice !
                some companies I worked with for setting a portal asked for this in the minimized mode.
                To be able to write a little message in the minimized portlet view, like "click here to see more about this blah blah..."
                Thanks !