Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Dave Kliczbor
Portlet header not showing up in "hooked" requests portlet
15 de Novembro de 2011 09:11
Resposta

Dave Kliczbor

Ranking: Junior Member

Mensagens: 55

Data de entrada: 12 de Julho de 2011

Mensagens recentes

Hello all,

I'm customizing the request portlet via a hook plugin. Just a few changes in view.jsp -- main addition: If there are no requests, a message should be displayed that there are no requests (default behaviour: portlet disappears completely from the page).

This works so far, except that the portlet header never shows up when there are no requests. I cannot find any code in ROOT/html/portlet/requests/view.jsp nor init.jsp that removes the header conditionally (nor the other way round: code that enables the header). The only related code which I could find was a bit of AUI javascript that calls portlet.hide() if there are no requests. I deleted that code and the portlet's contents show up in a <div class="portlet-borderless-container">, stating via my custom code that there are no requests. But the header is still missing.

As soon as there are some requests, the portlet header shows up in a proper <section class="portlet">, along with <header class="portlet-topper"> and <div class="portlet-body">. But I cannot find a piece of code nor a setting in ROOT/WEB-INF/*.xml that's responsible for this behaviour. I'm fairly sure that it's not in the portlet's JSP files.

Where should I look?
Dave Kliczbor
RE: Portlet header not showing up in "hooked" requests portlet
29 de Novembro de 2011 02:50
Resposta

Dave Kliczbor

Ranking: Junior Member

Mensagens: 55

Data de entrada: 12 de Julho de 2011

Mensagens recentes