On Wed, Feb 24, 2010 at 7:51 AM, Tender Slim <[email protected]> wrote:

>
> Hello David Sean Taylor-3,
>

LOL


>
> Thanks for your response. And thanks also for the “HideDecorator” hint.
> From
> your answer, am I correct in concluding that DetailPortlet must be rendered
> even when it is empty? Ideally, I would rather not render  DetailPortlet
> unless it contains something in it. But, I suppose, to meet my “must not be
> empty” requirement, the “No application selected" message could do the
> trick. I have looked into “pam.psml” and j2-admin::RegistryApplicationsList
> and j2-admin::ApplicationDetails are similar to my ResultListPortlet and
> DetailPortlet. But is there, really, no other way?
>
> BTW I am using 2.2.0
>
>
Its up to your application to determine the 'empty' state and then render
its content. Rendering empty content is not an exceptional case. There is no
standard way to say 'my portlet is empty, dont render me'

The solution recommended in the previous email (HideDecorator), in addition
to rendering empty content (just render an empty string) should work for you
with minimal effort

I think we could try to better formalize this use case in the upcoming
release

Reply via email to