Let's change the DateField
example a little bit:
Open or import the datefield example in your IDE.
Replace
DateField
withInlineDateField
inDateFieldUI.java
.Deploy and run the example.
Study this simple example that displays (in the console) the content of a text file uploaded by the user:
public class UploadUI extends UI implements Receiver { @Override protected void init(VaadinRequest request) { Upload upload = new Upload( "Select a text file and look at the console", this); VerticalLayout layout = new VerticalLayout(); layout.addComponent(upload); setContent(layout); } @Override public OutputStream receiveUpload(String filename, String mimeType) { return new OutputStream() { @Override public void write(int b) throws IOException { System...