Mgr
unread,Mar 16, 2011, 11:02:03 AM3/16/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
In Mozilla browser. & NetBean IDE 6.9 run the below code throws the
exception
Error: uncaught exception:
com.google.gwt.event.shared.UmbrellaException: One or more exceptions
caught, see full set in UmbrellaException#getCauses
I have more problem when I develop the gwt application. I am a newbee
to gwt. How to solve the below problem. As soon as possible please
reply for me. I am yet waiting for your reply.
My EntryPoint Class
public class MainEntryPoint implements EntryPoint
{
public VerticalPanel verticalPanelbutton = new VerticalPanel();
public VerticalPanel content = new VerticalPanel();
public DockLayoutPanel docPanel = new DockLayoutPanel(Unit.EM);
public MainEntryPoint()
{
}
public void onModuleLoad()
{
final Button doctorbutton = new Button("Doctor");
final Button addressIdbutton = new Button("AddressId");
verticalPanelbutton.add(addressIdbutton);
addressIdbutton.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent event)
{
AddressId addressId = new AddressId();
addressId.getAddressId();
}
});
docPanel.addNorth(verticalPanelbutton, 5);
docPanel.addNorth(content, 10);
RootPanel.get().add(docPanel);
}
}
------------------------------------------------------------------------------------------------------------------------------------------
My child Class
public class AddressId
{
public String doorNo_;
public Grid gridAddr_;
public void getAddressId()
{
gridAddr_ = new Grid(4, 2);
Label doornol = new Label("Door No");
final TextBox doorno = new TextBox();
Button addressok = new Button("Ok");
addressok.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent event)
{
try
{
AddressId addressId = new AddressId();
addressId.doorNo_ = ((TextBox) gridAddr_.getWidget(0,
1)).getText();
addressId.doorNo_ = ((String)doorno.getText());
print("addressId.doorNo_ :"+addressId.doorNo_);
Hospital.hospitalSingleton_.addAddressID(addressId);
}
catch (Exception e1)
{
print("e" + e1);
}
}
});
gridAddr_.setWidget(0, 0, doornol);
gridAddr_.setWidget(0, 1,doorno);
gridAddr_.setWidget(1, 0, addressok);
RootLayoutPanel r = RootLayoutPanel.get();
r.add(gridAddr_);
}