Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Buttons in Form With Advanced Layout, how to place?

Alexey Bykov
10 years ago Feb 13, 2012 12:28pm
Alexey Bykov
10 years ago Feb 13, 2012 12:31pm
Alexey Bykov
10 years ago Feb 13, 2012 12:39pm
Alexey Bykov
10 years ago Feb 13, 2012 12:43pm
Alexey Bykov
10 years ago Feb 13, 2012 1:02pm
Alexander Pchelintsev
10 years ago Feb 13, 2012 1:21pm

Hi,

I would try two ideas in this case. First, uglier one - is to tweak the content layout of the form. I mean you create a GridLayout, specify the number of rows/columns and add a Button so it is in a proper place (make sure that the FieldFactory will not try to add any fields in that cell). The other approach that I would rely on is a СustomField add-on. With it's API you can wrap the button and a textfield into one field and attach it directly in the FieldFactory.

//sasha

Alexey Bykov
10 years ago Feb 13, 2012 1:26pm
Claudio Crociati
10 years ago Feb 13, 2012 5:28pm

You can also have a look at the FormBinder add-on and the pre-created fields pattern.
With that you can create your layout and let the form only connect the fields with your properties.

Claudio

Alexey Bykov
10 years ago Feb 14, 2012 5:19am