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.

Crud UI Add-on

Антон Ломако
4 years ago Jul 11, 2018 12:12pm
jon martin solaas
4 years ago Jul 13, 2018 12:22pm
Alejandro Duarte
4 years ago Jul 20, 2018 10:09am
Viktor Patras
4 years ago Jul 29, 2018 5:22pm
Alejandro Duarte
4 years ago Aug 06, 2018 10:27am

Viktor, the DefaultFieldProvider works only with LocalDate since DatePicker doesn't support time selection. You can use a custom FieldProvider to build any field you want for a property:

formFactory.setFieldProvider("groups", () -> {
    CheckBoxGroup<Group> checkboxes = new CheckBoxGroup<>("Groups", groups);
    checkboxes.setItemCaptionGenerator(Group::getName);
    return checkboxes;
});
Elias Balasis
4 years ago Aug 19, 2018 4:12pm
Alejandro Duarte
4 years ago Aug 20, 2018 9:12am
Wei liang lim
4 years ago Aug 25, 2018 11:40am
Alejandro Duarte
4 years ago Aug 27, 2018 9:53am
Wei liang lim
4 years ago Aug 29, 2018 3:40am
Adexe Rivera Martín
4 years ago Aug 30, 2018 7:31am
Alejandro Duarte
4 years ago Sep 05, 2018 3:11pm
Alejandro Duarte
4 years ago Sep 07, 2018 4:06am
Alejandro Duarte
4 years ago Sep 07, 2018 4:23am

Adexe Rivera Martín: where is the best way, if exist, to convert price fields with currency converter??

If you mean Vaadin's Converter, currently there's no API for it in the component. As an alternative, you can create your own CrudFormFactory implementation. If you mean Java's CurrencyStringConverter you can encapsulate any kind of logic in a custom field.

Last updated on Sep, 7th 2018
Adexe Rivera Martín
4 years ago Sep 07, 2018 6:22am
Alejandro Duarte
4 years ago Sep 07, 2018 11:25am

Adexe Rivera Martín: Thanks for the alternative, but I think a good idea that you try to integrate as 'setFieldProvider'.

Yeah. Maybe a new method to set a Converter for a specific field. Can you please open an issue about it at https://github.com/alejandro-du/crudui/issues ? Cheers.

Adexe Rivera Martín
4 years ago Sep 07, 2018 11:41am
Wei liang lim
4 years ago Sep 09, 2018 10:32am

Alejandro Duarte:

Alejandro Duarte:

Wei liang lim: Hi Alejandro, i added this dependency to the bakery app and this error occur ...

This error is due to a bug in the checkbox-group component. I have sent a PR and it's merged already. Waiting for the author to publish a new version and then I'll update Crud UI.

Version 3.6.0 fixes this bug.

Hi Alejandro, yes it works now.

Deepak Chainani
4 years ago Sep 12, 2018 12:27pm
Alejandro Duarte
4 years ago Sep 12, 2018 12:35pm
Wei liang lim
4 years ago Sep 16, 2018 3:57pm
Alejandro Duarte
4 years ago Sep 18, 2018 8:19am
Deepak Chainani
4 years ago Sep 23, 2018 9:27am
Alejandro Duarte
4 years ago Sep 24, 2018 9:16am
Charly Pichard
4 years ago Oct 11, 2018 9:01am
Alejandro Duarte
4 years ago Oct 11, 2018 9:08am
Charly Pichard
4 years ago Oct 11, 2018 9:42am
Alejandro Duarte
4 years ago Oct 11, 2018 9:50am
Gianluigi Ferraris
4 years ago Oct 18, 2018 10:26pm
Alejandro Duarte
4 years ago Oct 19, 2018 10:52am
Gianluigi Ferraris
4 years ago Oct 19, 2018 11:44am
Alejandro Duarte
4 years ago Oct 19, 2018 12:56pm
Gianluigi Ferraris
4 years ago Oct 19, 2018 3:02pm
Deepak Chainani
4 years ago Oct 29, 2018 3:40pm
Gianluigi Ferraris
4 years ago Oct 29, 2018 5:05pm
Aliaksei Labotski
4 years ago Oct 30, 2018 7:24pm
Alejandro Duarte
4 years ago Oct 31, 2018 9:01am
Gustavo Madruga
4 years ago Nov 02, 2018 9:26pm
Aliaksei Labotski
4 years ago Nov 05, 2018 7:26am
Alejandro Duarte
4 years ago Nov 05, 2018 1:44pm