Hi all...

I'm taking the first steps on my own after successfully completing a couple
of tutorials and books.
However when I want to test my code on a real server, it does not display in
the browser..When the code is compiled in the hosted browser, there is no
problem.  When I press the button
Compile/Browse in the hosted browser, I only see the html contents
displayed: only the Title which is set in the index.html file.

I suspect the javascript file is not found in the browser, but there is no
error / message indicating as such. Where can I find out where it is going
wrong?

This are the contents of the files:

index.html:
<html>
<head>
    <title>Financial App</title>
</head>
<body>

<script type="text/javascript" language="javascript"
src="org.blackbox.finap.FinAp.nocache.js"></script>

<h1>FinAp</h1>
<div id="mainScreen"> </div>
</body>
</html>

finAp.java:

package org.blackbox.finap.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.*;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.DOM;

public class FinAp implements EntryPoint {

    public void onModuleLoad() {

        finApComponent finAppie = new finApComponent();
        RootPanel.get("mainScreen").add(finAppie);
    }
}

finApComponent.java:
package org.blackbox.finap.client;

import com.google.gwt.user.client.ui.*;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.core.client.GWT;


public class finApComponent extends Composite {


    private DockPanel composite = new DockPanel();
    private Label testLabel1 = new Label();
    private Label testLabel2  = new Label();
    private Button button1 = new Button("North1");

    public  finApComponent() {

        // Build the North - Menu Panel
        composite.add(button1,composite.NORTH);
        composite.setCellHeight(button1,"80px");

        //Build the South- Overview Panel
        HorizontalPanel overview = new HorizontalPanel();
        overview.add(testLabel1);
        overview.add(testLabel2);

        composite.add(overview,composite.SOUTH);

        // Build the West - IncomePanel
        VerticalPanel incomePanel = new VerticalPanel();

       //Build the Center - ExpensesPanel
        Grid expensesGrid = new Grid(3,4);

          //set up the grid for the expenses.
       //create the grid structure
          for (int r=0;r<3;++r) {
            for (int c=0;c<4;++c) {
                expensesGrid.setWidget(r,c,new HTML("A"));
            }
          }
        composite.add(expensesGrid,composite.CENTER);

    initWidget(composite);
}

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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=.


Reply via email to