5 Replies Latest reply on May 22, 2007 6:43 AM by Thomas Heute

    JBoss portal + two GWT portlets

    Maciej Zientarski Newbie

      Hi!

      Have anyone tried to use GWT portles in JBoss portal? I have following problem:

      I have two jsp pages that render gwt:

      <%@ page contentType="text/html" %>
      <meta name='gwt:module'
      content='/ejb/www/com.sius.gwt.CategoriesManager=com.sius.gwt.CategoriesManager'>
      <div id="categoriesManager_div">
      </div>
      <script language="javascript"
      src="/ejb/www/com.sius.gwt.CategoriesManager/gwt.js">


      and

      <%@ page contentType="text/html" %>
      <meta name='gwt:module'
      content='/ejb/www/com.sius.gwt.PasswordsManager=com.sius.gwt.PasswordsManager'>
      <div id="categoriesManager_div">
      </div>
      <script language="javascript"
      src="/ejb/www/com.sius.gwt.PasswordsManager/gwt.js">


      when I put them on my portal separately everything is ok, but when I
      want them together only the first portlet renders but this time twice
      in a same portlet window (second portlet window is now empty). I know
      that problem of double-rendering can be solved by using only one
      reference to gwt.js per site but I cannot delete it form any of those
      portlets becouse they may be used separately.

      The second problem is that <mete name='gwt:module... tags must be used
      one by one to make portlets render correctly but I cannot do that -
      JBoss portal puts those whole jsp pages one by one so it still rendes
      incorrectly.

      Can anyone help me ?

      Thanks in advance.