Hi...

I have a page. inside that page i have an iframe. inside that iframe, i have
a command link which will popup a window. the action for that command link
is "dialog:....." and I have specified the returnListener.
What I am trying to do is, I would like to completely refresh the page that
will include the iframe and the iframe's parent window.

In my returnListener, I have forward the page to it self like Simon Lessard
mention on the other post.

public void redirectToSelf(ReturnEvent ev)
{
  FacesContext context = FacesContext.getCurrentInstance();
  ExternalContext eContext = context.getExternalContext();

  String contextPath = eContext.getRequestContextPath();
  String servletPath = eContext.getRequestServletPath();
  String viewId = context.getViewRoot().getViewId();
  eContext.sendRedirect(eContext.encodeActionUrl(contextPath + servletPath +
viewId));
}


If I specified that in my returnListener, it will only refresh the iframe
since the viewid in ViewRoot will definately the iframe's url because the
command link is in the iframe page.

my question: 
How do I refresh the whole page include the iframe's parent window?
any idea?

Thank you very much.

Regards,

pdt

-- 
View this message in context: 
http://www.nabble.com/Trinidad-Refresh-parent-window-page-after-dialog-closed-tf4533093.html#a12936564
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to