フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Dave Kliczbor
Portlet header not showing up in "hooked" requests portlet
2011/11/15 9:11
答え

Dave Kliczbor

ランク: Junior Member

投稿: 65

参加年月日: 2011/07/12

最近の投稿

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
2011/11/29 2:50
答え

Dave Kliczbor

ランク: Junior Member

投稿: 65

参加年月日: 2011/07/12

最近の投稿

Here's a solution to this question.