Simon Kitching wrote:
How about:
  <t:div rendered="#{pageBean.showPopup}">
    <f:verbatim>
      <script type="text/javascript">
        window.open("/popup.jsf", "popupwin", "....");
      </script>
    </f:verbatim>
  </t:div>

Then in your method that is connected to the commandButton used to
submit the page, just set a flag so that showPopup returns true.

The flag will be false initially, so the script won't render. After a
successful submit, showPopup will return true so the script is rendered
and the window will open.

I would need to execute a backing bean method in order to generate
content (backing bean produces the whole response by streaming data
from a back-end server) for the new window.

Is there a better way to invoke the backing bean method than to create
an invisible submit button whose action/actionListener method is bound
to the method to be executed and modify the above Javascript code to
submit the form using the new button?

Reply via email to