Hi Kaled,

thanks for your answer, unfortunately I do not really understand it, and do
not know where and how to use the request dispachers, you suggest. Maybe
there was a little misunderstanding. In fact my voting application is
already finished and it works quite well. The only thing I want to do, is
to make some of the portlet actions run in a popup window, and not in the
box that contains my porlet on the Jahia page.

For example in my portlet I have a link which opens the maintenance view:

  <a href="<%=response.encodeUrl(request.getContextPath() +
"/jsp/maintain.jsp")%>" > Maintainence</a>

I want this action to be run in a popup. My first thought was to do
something like this

  function openPopupForUrl(url)
  {
    popupWindow = window.open(.......); //....
  }
  <a href="javascript:{openPopupForUrl(response.encodeUrl(
'<%=request.getContextPath() + "/jsp/maintain.jsp'%>')); void(0);}" >
Maintainence</a><br>

This actually opens a new browser window, which holds the complete
Jahiapage, i.e the surrounding page content and the portlet content, but I
need a popup that contains only the portlet content.


The problem is, that Jahias encodeURL interceptor always creates a URL for
the current Jahia page. What I would need would be something like
"response.encodeUrlForPopup()". This method could create a URL to a fixed
Jahia page which only contains a webappfield.
What I still need is all the information about login state, roles,
contextId, pageId, the encodeURL interceptor puts in the request wrapper!

OK these have been my considerations ..

But can you please explain me in more detail what and how you mean, or can
I find somewhere an example of a Jahia portlet that internally uses popups
and does not completely run in one and the same Jahiapage?

____
thanks in advance
Wilhelm

Reply via email to