Dan/Sathya,
I read a artical between you (on 1/11/07). It helps me.
I am facing same issue after we upgrade GWT from 1.2 to 2.3. v1.2 has been 
worked well with my portal (VAP 7.4) for a while. We keep same 
implementation with upgrading but could not load gwt componments(Map) from 
portal now. what I saw are
 
=== in GWT v 1.2 logs====
 
10.140.3.56 - - [07/Sep/2012:10:41:47 -0500] "GET 
/portal/site/qcnetworx/template.binary/binary/module/866e5df7a19577c1785bde10c87c00a0/binary_content/?proxy_inline=true&epiproxyrealurl=http://qcnmap-e2e.dev.qintra.com:80/qcnmap/6270670BB31873C9D34757A8AE5F5E86.cache.png
 
HTTP/1.1" 200 132

 

10.140.3.56 - - [07/Sep/2012:10:41:40 -0500] "GET 
/portal/site/qcnetworx/template.binary/binary/module/866e5df7a19577c1785bde10c87c00a0/binary_content/?proxy_inline=true&epiproxyrealurl=http%3A//qcnmap-e2e.dev.qintra.com%3A80/qcnmap/CB077DBB20C0024BF959357807E0AF33.cache.html
 
HTTP/1.1" 200 204685

 

=== in GWT v 2.3 logs ====

10.140.3.56 - - [05/Sep/2012:04:59:09 -0600] "GET 
/portal/site/qcnetworx/template.binary/binary/module/04d63778515a84718b726cd8cb1c00a0/binary_content/
*clear.cache.gif* HTTP/1.1" 404 -

...  

10.140.3.56 - - [05/Sep/2012:04:59:10 -0600] "GET 
/portal/site/qcnetworx/template.binary/binary/module/04d63778515a84718b726cd8cb1c00a0/binary_content/
*22F660BA52A9F0C9DDAEFD5E41E380E6.cache.html* HTTP/1.1" 404 -

Then, comparing the commonmapui.nocache.js. I could see the diffenerce as

=== GWT v1.2 ====

function com_qwest_control_commonmap_CommonMapUI(){var 
l=window,k=document,t=l.external,ab,w,q,p='',z={},db=[],F=[],o=[],C,E;if(!l.__gwt_stylesLoaded){l.__gwt_stylesLoaded={};}if(!l.__gwt_scriptsLoaded){l.__gwt_scriptsLoaded={};}function
 
v(){try{return t&&(t.gwtOnLoad&&l.location.search.indexOf('gwt.hybrid')== 
-1);}catch(a){return false;}}

===GWT v2.3 ====function commonmapui(){var O='',vb='" for 
"gwt:onLoadErrorFn"',tb='" for 
"gwt:onPropertyErrorFn"',hb='"><\/script>',Y='#',Vb='.cache.html',$='/',Ob='086534CF8F74AEF42648301C3AC760BE',Pb='2DCD2795F4CBABD55D0EC9953354CB1C',Qb='3F433C0C70E5DB28A6C4342191BEBB86',Rb='7C30B62E09B5D36316A8C3B176D70EA4',Ub=':',nb='::',Xb='
 

 
thanks
Lilly
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/042l1wR4gpUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

<%@ page import="com.qwest.control.commonmap.client.util.CommonJspInterface"%>
<%@ page import="com.qwest.control.commonmap.client.util.CommonJspObject"%>
<%
        response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
        response.setHeader("Pragma","no-cache"); //HTTP 1.0
        response.setDateHeader ("Expires", 0); //prevents caching at the proxy 
server
%>
<html xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:v="urn:schemas-microsoft-com:vml">
        <head>
                <title>Networx Common Map</title>
                <link type="text/css" rel='stylesheet' href='CommonMap.css'/>
                <!--                                            -->
                <!-- This script is required bootstrap stuff.   -->
                <!-- You can put it in the HEAD, but startup    -->
                <!-- is slightly faster if you include it here. -->
                <!--                                            -->
                <!-- The module reference below is the link    -->
                <!-- between html and your Web Toolkit module  -->
                <!--                                           -->
                <meta name='gwt:module' 
content='com.qwest.control.commonmap.client.CommonMapUI'>
                <meta name='gwt:shortModuleName' content='commonmapui'>
                <%
                        CommonJspObject jspObj=new 
CommonJspInterface().process(request,response);
                        boolean isLoginAs=jspObj.isLoginAs();
                        String googleApiKey=jspObj.getGoogleApiKey().trim();
                        String analyticsKey=jspObj.getAnalyticsKey();
                String mapURL=jspObj.getMapURL();
                String siteURL=jspObj.getSiteURL();
                String userFirstName=jspObj.getUserFirstName();
                String userLastName=jspObj.getUserLastName();
                String oriUserLoginId=jspObj.getOrigLoginId();

                boolean isStandAlone=jspObj.isStandAlone();
                boolean cookieTesting = false;
                System.out.println("@@@@@@@@@ CommonMapUI.jsp @@@@@@@");
                System.out.println(" isLoginAs="+isLoginAs+" 
googleApiKey="+googleApiKey+" analyticsKey="
                                +analyticsKey+" mapURL="+mapURL+" 
siteURL="+siteURL+" userFirstName="+userFirstName
                                +" userLastName="+userLastName+" 
oriUserLoginId="+oriUserLoginId+" isStandAlone="+isStandAlone+" 
cookieTesting="+cookieTesting);
        %>
                <script type='text/javascript' 
src='/qcnmap/scripts/PortalPopup.js'></script>
                <script src="http://ssl.google-analytics.com/ga.js"; 
type="text/javascript"></script>
                <script language="javascript">
                        <!--
                        var popupFormName="beanIdForm1";
                        // -->
                        var pageTracker = 
_gat._createTracker("<%=analyticsKey%>");
                        pageTracker._trackPageview();
                        /*function handleError() {

                                alert("Session has expired.Please login 
again..");
                                window.close();
                                return true;
                        }
                        window.onerror = handleError;*/

                        /**
                        * Added by gxraj
                        * For downloading googlemap to pdf
                        */
                        function openNewWindow(value) {

                                document.mapToPDFForm.staticMapURL.value = 
value;
                                var downloadUrl = 
"IntermediateMapToPdfProcess.jsp?staticMapURL=" + value;
                                downloadUrl = '<%=mapURL%>' +"/"+downloadUrl;
                                
window.open(downloadUrl,'downloadwindow','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,width=200,height=200');
                                /*document.mapToPDFForm.submit();*/
                        }

                        var timerObj1;
                        function SetTimer(cookieValue) {
                                 //alert('inside SetTimer()');  
                                 timerObj1 = 
setTimeout("checkParentSession('"+cookieValue+"')",15000);
                        }
                        function checkParentSession(previousCookieSessionId) {
                                //alert('inside checkParentSession()');
                                var cookieValue=window.opener.document.cookie;
                                if(previousCookieSessionId==cookieValue) {
                                        //alert('session is still valid');
                                        <%if(isLoginAs){%>
                                        var url=window.opener.location.href;
                                        
if(url.indexOf("qcnetworxQwest",0)!="-1") {

                                                alert("User type has 
changed.Closing the map.");
                                                window.close();
                                        }
                                        <% }%>
                                
timerObj1=setTimeout("checkParentSession('"+cookieValue+"')",15000)
                                }else {
                                        //alert('session is no more valid');
                                        alert("Session has expired.Please login 
again.");
                                        window.close();
                                }
                        }

                        var userInfo = {<%=jspObj.getUserInfoDictionary()%>     
};
                        function launchHelp(pageUrl) {

                                var helpWindow = window.open(pageUrl, 
"helpWindow", 
"toolbar=0,location=0,directories=0,scrollbars=yes,menubar=0,resizable=1,copyhistory=0,width=500,height=500,dependent=1,alwaysRaised=1");
                                helpWindow.focus();
                        }

                        // === functions that perform the context menu options 
===
                        function zoomIn(map) {

                        alert(map);
                // perform the requested operation
                // hide the context menu now that it has been used
                        }                       
                
                        function refreshParentWindow(menuItemId,ticketId) {

                                loadProgressParentLink();
                                
proxyUrlViewTicket(window.opener.location,ticketId,'<%=mapURL%>',menuItemId);
                }
                        function 
proxyUrlViewTicket(openForm,ticketId,mapUrl,menuItemId) 
                        {       
                                mapUrl=mapUrl + 
"/IntermediateProcessViewTicket.jsp?ticketId="+ ticketId + "&menuItem="+ 
menuItemId + "&siteURL=" + '<%=siteURL%>' + "&opName=viewTicket" ;
                                var beanIDval = 
window.document.gwtForm.beanID.value;
                                var returnUrl = mapUrl;
                                openForm.href = eval("borderlocationproxy" + 
beanIDval +"(returnUrl)");
                        }

                        function refreshParentWindowUBI(menuItemIdUBI,ubi) {
                                loadProgressParentLink();
                                
proxyUrlUBI(window.opener.location,ubi,'<%=mapURL%>',menuItemIdUBI);
                        }

                        function proxyUrlUBI(openForm,ubi,mapUrl,menuItemIdUBI) 
{
                                mapUrl=mapUrl + 
"/IntermediateProcessViewUBIDetail.jsp?ubi="+ ubi + "&menuItem="+ menuItemIdUBI 
+ "&siteURL=" + '<%=siteURL%>' + "&opName=viewUBI" ;
                                var beanIDval = 
window.document.gwtForm.beanID.value;
                                var returnUrl = mapUrl;
                                openForm.href = eval("borderlocationproxy" + 
beanIDval +"(returnUrl)");
                        }

                        function 
refreshParentWindowCreateTicket(menuItemIdCreateTicket,ubi) {
                                alert("inside refreshParentWindowCreateTicket 
aaa");
                                loadProgressParentLink();
                                alert("loadProgress done");
                                
proxyUrlCreateTicket(window.opener.location,'<%=mapURL%>',menuItemIdCreateTicket,ubi);
                          
                        }
                        
                        /*function proxyUrlCreateTicketIframe(beanIDval, 
returnUrl){
                                
window.opener.location.href=eval("borderlocationproxy" + beanIDval 
+"(returnUrl)");
                        }*/

                        function 
proxyUrlCreateTicket(openForm,mapUrl,menuItemIdCreateTicket,ubi) {
                                alert('inside proxyUrlCreateTicket');
                                alert('openForm='+openForm);
                                alert('mapUrl='+mapUrl);
                                
alert('menuItemIdCreateTicket='+menuItemIdCreateTicket);
                                alert('ubi='+ubi);
                                mapUrl=mapUrl + 
"/IntermediateProcessCreateTicket.jsp?ubi="+ ubi + "&menuItem="+ 
menuItemIdCreateTicket + "&siteURL=" + '<%=siteURL%>' + "&opName=createTicket" ;
                                var beanIDval = 
window.document.gwtForm.beanID.value;
                                var returnUrl = mapUrl;
                                alert('beanIDval='+beanIDval);
                                alert('returnUrl='+returnUrl);
                                openForm.href = eval("borderlocationproxy" + 
beanIDval +"(returnUrl)");
                        }

                <%if(!isStandAlone || cookieTesting){%>
                        //alert("not standalone.. and about to call setTimer() 
from parentt");
                        //alert('about to call setTimer');
                                SetTimer(window.parent.document.cookie);
                                //window.parent.setTimer();
                        <%}%>

                </script>
                <script 
src="http://maps.googleapis.com/maps/api/js?sensor=false"; 
type="text/javascript"></script>
        </head>
                <script type='text/javascript' src='gwt.js'></script>
        
        <!--                                           -->
        <!-- The body can have arbitrary html, or      -->
        <!-- you can leave the body empty if you want  -->
        <!-- to create a completely dynamic ui         -->
        <!--                                           -->
        <body>
                <table width="100%" align="center" height="100%" border="0" 
cellpadding="0" cellspacing="0">
                        <tr height="3%">
                                <td width="100%" >
                                        <table width="100%" border="0" 
align="center" height="100%" cellpadding="5">
                                                <tr>
                                                        <td align="left" 
width="40%" class="normalWelcomeText">
                                                                Welcome 
                                                                
<%if(!isLoginAs){%>

                                                                        
<b><%=userFirstName%> <%=userLastName%></b> 
                                                                <%}else{%>

                                                                        <b> 
<%=oriUserLoginId%> </b> Logged in as:<b> <%=userFirstName%> 
<%=userLastName%></b> 
                                                                <%}%>
                                                </td>
                                                        <td align="left" 
id="temp1" width="60%">
                                                                <table 
width="100%" align="center" height="100%" border=0>
                                                                        <tr>
                                                                                
<td align="right" id="parentlinkslotimg" width="5%"></td>
                                                                                
<td align="left" id="parentlinkslot" width="95%" class="normalTextPrg"></td>
                                                                        </tr>
                                                                </table>
                                                        </td>
                                                        <td align="right" 
id="preference" colspan="1" width="35%"><td width="100%">
                                                                <table 
border="0" cellpadding="0" cellspacing="0" width="100%">
                                                                        <tr>
                                                                                
<td id="downloadslot" align="right" valign="bottom" class="toolLinks"></td>
                                                                                
<td align="right" valign="bottom" 
class="toolLinks">&nbsp;&nbsp;|&nbsp;&nbsp;</td>
                                                                                
<td id="help" align="right" valign="bottom" class="toolLinks" width="100%">
                                                                                
        <a href="javascript:launchHelp('<%=jspObj.getHelpLinkURL()%>')" 
class="miniLinks" >Help</a>
                                                                                
</td>
                                                                        </tr>
                                                                </table>
                                                        </td>
                                                </tr>
                                        </table>
                                </td>
                        </tr>
                                <tr>
                                <td width="100%">
                                        <table width="100%" align="center" 
height="100%" border=0>
                                                <tr>
                                                        <td id="slot1" 
width="100%" height="100%"></td>
                                                </tr>
                                        </table>
                                </td>
                        </tr>
                        <tr height="10%">
                                <td width="100%">
                                        <table width="100%" align="center" 
height="100%" border=0>                      
                                                <tr>
                                                        <td align="right" 
id="slot3" width="30%"></td>
                                                        <td align="left" 
id="slot2" width="30%"></td>
                                                        
<%if(jspObj.getSiteId().equalsIgnoreCase("qcnetworxQwest")) {%>
                                                        <td id="Legends" 
align="right" valign="bottom" class="normalText">
                                                                <b>Legend :</b> 
<img src="help/mm_20_green.png"/>&nbsp;&nbsp;Inventory Information&nbsp;&nbsp;
                                                        </td>
                                                        <%}else{%>
                                                        <td id="Legends" 
align="right" valign="bottom" class="normalText">
                                                                <b>Legend :</b> 
<img src="help/mm_20_green.png"/>&nbsp;&nbsp;Inventory &nbsp;&nbsp;
                                                                <img 
src="help/mm_20_red.png"/>&nbsp;&nbsp;Open Tickets&nbsp;&nbsp;
                                                                <img 
src="help/mm_20_yellow.png"/>&nbsp;&nbsp;In Progress &nbsp;&nbsp;
                                                        </td>
                                                        <%}%>
                                                </tr>
                                                <tr height="50%">
                                                        <td></td>
                                                </tr>
                                        </table>
                                </td>
                        </tr>
                </table>
                <form name="mapToPDFForm" method="post" 
action="servlet/googleMapToPDF" target="_blank">
                        <input type="hidden" name="staticMapURL" value="" />
                </form>
                <form name="gwtForm" id="gwtForm" method="POST" 
action="/doNothing"></form>
                <form action="/doNothing" name="beanIdForm1" id="beanIdForm1" 
method="POST"></form>
        </body>
</html>
/*
 * Qwest Communications
 * Sep,05 2007 
 */
package com.qwest.control.commonmap.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.i18n.client.Dictionary;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.qwest.control.commonmap.client.MapPanel.MapPanelInfo;

/**
 * This is Entry point class to display Map and Tree. 
<code>onModuleLoad()</code> api will be called to load
 * the widgets.
 * 
 * @author pchenna
 * 
 */
public class CommonMapUI implements EntryPoint
{
    // List of all panels(tabs) to be displayed
    protected MapPanelList list = new MapPanelList();
    protected static final CommonMapProperties prop = (CommonMapProperties) 
GWT.create(CommonMapProperties.class);
    // Current panel i.e been displayed
    private VerticalPanel panel = new VerticalPanel();    

    private Button dialogButton = new Button("Preferences", new ClickHandler(){

                public void onClick(ClickEvent arg0) {
                        DialogBox dlg = new CommonMapDialog();
            dlg.center();
                        
                }
    });

    // Description of tab
    private HTML description = new HTML();

    private MapPanel mapPanel;    

    /**
     * This is entry point method that loads all the widgets onto browser
     */
    public void onModuleLoad()
    {
//        MapUtilityClassForJavaScript.defineBridgeMethod();
        Window.alert("Congratulations!!! i am hitting GWT code 
@CommonMapUI.onModuleLoad()");
        loadMapPanels();
        panel.add(list);
        panel.setWidth("100%");
        panel.setHeight("100%");

        RootPanel.get("slot1").add(panel);
        HTML html;
        /* Added by gxraj, added loading information for internal user.*/
        Dictionary loggedInUser = Dictionary.getDictionary("userInfo");
        if(loggedInUser.get("userType").equalsIgnoreCase("Qwest"))
        {
                html = new HTML("&nbsp; <b>Loading inventory information... 
</b>");
        }
        else
        {
                html = new HTML("&nbsp; <b>Loading real time ticket 
information... </b>");
        }

        Image img=new Image();
        img.setUrl("/help/progressbar.gif");
        RootPanel.get("slot2").add(html);
        RootPanel.get("slot3").add(img);
        /**
         * Added by gxraj
         * Added for removing progress bar at the start loading time
         * */
        RootPanel.get("slot2").setVisible(false);
        RootPanel.get("slot3").setVisible(false);
//        RootPanel.get("preference").add(dialogButton);
        showInfo();

        /**
         * Added by sxrx4
         * For displaying progress bar while refreshing parent window
         * */
        HTML parentLinkHtml = new HTML("&nbsp;Refreshing parent window... ");  
        Image image = new Image();
        image.setUrl("/help/progressbar.gif");
        RootPanel.get("parentlinkslot").add(parentLinkHtml);
        RootPanel.get("parentlinkslotimg").add(image);
        RootPanel.get("parentlinkslot").setVisible(false);
        RootPanel.get("parentlinkslotimg").setVisible(false); 
        showProgressParentLink();
    }  

    /**
     * Added by gxraj
     * For creating Download pdf Link
     * */
    public static void createDownloadLink(Widget downLink)
    {
        RootPanel.get("downloadslot").add(downLink);
    }

    public static void loadLabel(boolean isVisible)
    {
        RootPanel.get("slot2").setVisible(isVisible);
        RootPanel.get("slot3").setVisible(isVisible);
    }

    /**
     * Loads Panels on request from the user
     * 
     */
    protected void loadMapPanels()
    {
        list.addMapPanel(InventoryMapPanel.init());
    }

    /**
     * Display InventoryMap Panel
     * 
     */
    private void showInfo()
    {
        show(list.find("InventoryMap"));
    }

    /**
     * Display the selected panel(tab)
     * 
     * @param info
     * @param affectHistory
     */
    public void show(MapPanelInfo info)
    {
        mapPanel = info.getInstance();
        description.setHTML(info.getDescription());
        panel.add(mapPanel);
        panel.setCellHorizontalAlignment(mapPanel, VerticalPanel.ALIGN_CENTER);
        mapPanel.setVisible(true);
        mapPanel.onShow();
    }    
    
    /**
     * Added by sxrx4
     * For displaying progress bar while refreshing parent window
     * */  
    public native void showProgressParentLink() /*-{    
        $wnd.loadProgressParentLink = 
                
@com.qwest.control.commonmap.client.CommonMapUI::loadProgressParentLink();      
        
    }-*/;
    
        /**
         * Added by sxrx4
         * For displaying progress bar while refreshing parent window
         * */
    private static void loadProgressParentLink()
    {     
        RootPanel.get("parentlinkslotimg").setVisible(true);
        RootPanel.get("parentlinkslot").setVisible(true);       
        progressTimer.scheduleRepeating(prop.progressTimer());
    }
    
    /**
         * Added by sxrx4
         * For displaying progress bar while refreshing parent window
         * */
    private static void unLoadProgressParentLink()
    {
                RootPanel.get("parentlinkslotimg").setVisible(false);
        RootPanel.get("parentlinkslot").setVisible(false);
    }
   
    /**
         * Added by sxrx4
         * For displaying progress bar while refreshing parent window
         * */
        protected static Timer progressTimer = new Timer()
        {
                public void run()
                {
                        unLoadProgressParentLink();
                }
        };
}

Reply via email to