Hello
I am a Vaadin 6 developer and a GWT developer.
I would like to know if I can use Vaadin 7 UI client components in a GWT application.
- For example can I change the GWT components for Button ,TextBox and Label to Vaadin 7 client components ?
- Can I use RootPanel.get( ?
- What should my HTML code look like ? i.e. what CSS’s etc must I include ?
regards
Richard
code from :
http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html
//
final Button sendButton = new Button( messages.sendButton() );
final TextBox nameField = new TextBox();
nameField.setText( messages.nameField() );
final Label errorLabel = new Label();
// We can add style names to widgets
sendButton.addStyleName("sendButton");
// Add the nameField and sendButton to the RootPanel
// Use RootPanel.get() to get the entire body element
RootPanel.get("nameFieldContainer").add(nameField);
RootPanel.get("sendButtonContainer").add(sendButton);
RootPanel.get("errorLabelContainer").add(errorLabel);
// Focus the cursor on the name field when the app loads
nameField.setFocus(true);
nameField.selectAll();
//