Hi, I have a question with the TextField in FormLayout
When I create some Textfield and add them in the FormLayout, the text part of the TextField will align to the right and the input field part will align to the left.
See the example from the sampler http://demo.vaadin.com/sampler/#FormBasic
Is there a way that I can put everything align to the left.
In the sampler, we have:
First Name ________
Last Name ________
----Country ________
–Password ________
Is there a way I can get:
First Name ________
Last Name ________
Country---- ________
Password- ________
Note: “–” should be space when displaying and “____” is the input field
I have Textfield that some of them have really long text part. Also for the way this sampler create this form, is there a way I can add a empty space to two fields, say firstName and lastName? Based on Vaadin Book Page 85, I can have this by:
TextField firstNameT = new TextField("First Name");
TextField lastNameT = new TextField("Last Name");
Label spaceL = new Label(" ", Label.CONTENT_XHTML);
FormLayout fl = new FormLayout();
fl.addComponent(firstNameT);
fl.addComponent(spaceL);
fl.addComponent(lastNameT);
However, this lose the power of binding data and later .commit();
Thanks for any help.
Bryan