I do it in a project but I'm not sure if it is the best way to do it. Here it 
goes:

You have a event-scoped Seam component:

  | 
  | @Name("jspopup")
  | public class JsPopup {
  | 
  |   private String name;
  |   private String url;
  |   private int height;
  |   private int width;
  |  // etc.
  |   
  | 
  | /* Getters and Setters */
  | 
  | 
  | }
  | 

In your action method you create the popup component and outject it. Now
add some javascript at he beginning of the page:


  | <c:if test"! empty popup">
  | 
  |    <script language="javascsript>
  |        var vWinUsers = window.open('
  | #{jspopup.url}', 
#{jspopup.name},'width=#{jspopup.width},width=#{jspopup.height});
  |     vWinUsers.opener = self;
  |     vWinUsers.focus()
  |    </script>
  | 
  | </c:if>
  | 

If you find a better way to do it please let me know.

Regards

Felix

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025359#4025359

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025359
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to