Hi all,
I have this strange problem :
I have a main panel which is borderpanel .
When i set html for the center panel i see the changes, Howeve, when i
add a widget (onclick event) ithe widget is not seen in the center
panel.
Have an idea?
Here is the module load :
public void onModuleLoad() {
/**
* START - Define RPC service callback for future ajax requests
*/
ServiceDefTarget endpoint = (ServiceDefTarget) serviceAsync;
// String moduleRelativeURL = GWT.getModuleBaseURL() + "../
includes.php";
String moduleRelativeURL = "http://localhost/idlogger_v8/
includes.php";
endpoint.setServiceEntryPoint(moduleRelativeURL);
/**
* END - Define RPC service callback for future ajax requests
*/
//Main panel to add to root view
Panel panel = new Panel();
panel.setBorder(false);
panel.setPaddings(15);
panel.setLayout(new FitLayout());
Panel borderPanel = new Panel();
borderPanel.setLayout(new BorderLayout());
Panel northPanel = new Panel();
Image img = new Image("images/header_icon.jpg");
img.setWidth("315");
northPanel.add(img);
northPanel.setHeight(72);
northPanel.setWidth(450);
borderPanel.add(northPanel, new BorderLayoutData
(RegionPosition.NORTH));
//add south panel
Panel southPanel = new Panel();
southPanel.setHtml("<p>south panel</p>");
southPanel.setHeight(100);
southPanel.setCollapsible(true);
southPanel.collapse(true);
southPanel.setTitle("South");
BorderLayoutData southData = new BorderLayoutData
(RegionPosition.SOUTH);
southData.setMinSize(100);
southData.setMaxSize(200);
southData.setMargins(new Margins(0, 0, 0, 0));
southData.setSplit(true);
borderPanel.add(southPanel, southData);
BorderLayoutData westData = new BorderLayoutData
(RegionPosition.WEST);
westData.setSplit(true);
westData.setMinSize(175);
westData.setMaxSize(400);
westData.setMargins(new Margins(35, 5, 0, 5));
westData.setCMargins(new Margins(35, 5, 5, 5));
borderPanel.add(getWestMenuPanel(), westData);
centerPanel = new Panel();
centerPanel.setHtml("<p>center panel</p>");
borderPanel.add(centerPanel, new BorderLayoutData
(RegionPosition.CENTER));
panel.add(borderPanel);
Viewport viewport = new Viewport(panel);
}
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---