Hello everyone !
I've been developing this application using UIBinders and I'm very
frustrated because when I use DockPanelLayout as my Layout Panel I
can't get it to display anything at all. I realize I must be missing
something. but I don't know what it is...
Here are my code Snippets:
public class GroupsFrontEnd implements EntryPoint {
public void onModuleLoad() {
RootPanel.get().add(new Application());
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
public class Application extends Composite {
private static ApplicationUiBinder uiBinder = GWT
.create(ApplicationUiBinder.class);
interface ApplicationUiBinder extends UiBinder<Widget, Application> {
}
@UiField
VerticalPanel content;
public Application() {
initWidget(uiBinder.createAndBindUi(this));
this.addWidget(new LoginWidget());
}
public void addWidget(Widget widget) {
content.clear();
content.add(widget);
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
public class LoginWidget extends Composite {
private static LoginWidgetUiBinder uiBinder = GWT
.create(LoginWidgetUiBinder.class);
interface LoginWidgetUiBinder extends UiBinder<Widget, LoginWidget> {
}
@UiField
Label loginLabel;
@UiField
TextBox loginValueBox;
@UiField
Label passwordLabel;
@UiField
TextBox passwordValueBox;
public LoginWidget() {
initWidget(uiBinder.createAndBindUi(this));
loginLabel.setText("login:");
passwordLabel.setText("password:");
}
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style>
.form {
float: right;
width: 400px;
height: 180px;
}
</ui:style>
<g:DockLayoutPanel unit='PX'>
<g:center size='500'>
<g:HTML>
<p>
This is where I want to display some
Text Content
</p>
</g:HTML>
</g:center>
<g:east size='300'>
<g:HTMLPanel>
<table>
<tr>
<td>
<g:Label
ui:field="loginLabel" />
</td>
<td>
<g:TextBox
ui:field="loginValueBox" />
</td>
</tr>
<tr>
<td>
<g:Label
ui:field="passwordLabel" />
</td>
<td>
<g:TextBox
ui:field="passwordValueBox" />
</td>
</tr>
</table>
</g:HTMLPanel>
</g:east>
</g:DockLayoutPanel>
</ui:UiBinder>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I hope somebody could tell me What is wrong. I think it may be
something really obvious, But I just don't see it, please help... the
browser is blank when I run this, but throws No error.
Thanks in advance,
Best Regards,
Jose.
--
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.