Java tutorial: Listing entities in a data grid and configuring columns (part 6)

preview_player
Показать описание

Retrieve data from your database and display it to your users in a grid. Learn how to implement this attractive UI layout option in your web app project.

Рекомендации по теме
Комментарии
Автор

This is amazing. Thank you very much, this is an amazing technology

juggernaut
Автор

nice tutorial, thanks ! For me it's the best tutorial in this technology sector, very amazing for getting in, thanks !
But some question: I added (for getting experience) an amount field in the contact entity (BigDecimal), but can't render it in the grid with new DecimalFormat("$ #, ##0.00")));
what do i wrong ? Thanks !

volkerbechtel
Автор

where exactly was this info about the library reload?

Muescha
Автор

Something you missed with this one, for the new company column we added. There is no sorting functionality like there is for all of the other columns. Quick fix for everyone is after the .setHeader("Company") insert .setSortable(true); So the entire function would be:

grid.addColumn(contact -> {
Company company = contact.getCompany();
return company == null ? "-" : company.getName();

Takigavin
Автор

What i have actualy did was after implementing the one which shown on this video, i had created a tab while switching to employee it will show employee details and while awitching to company in tab it shows company details.

Iam facing an nullpointer exception while switching the company tab it says
CompanyService.findAll() is nulk do any one know what might be the issue

#vaadinofficial

nayankumarbn
Автор

I simply don't understand why only Vaadin is worried with allowing Java developers to be able to make fullstack development in such a clean and simple way. This is like Swing for the 2010/20's+

luisluiscunha
Автор

im getting error : Consider defining a bean of type in your configuration.

pixels
Автор

Hi! How do I create a pagination in vaadin with datagrid? What should I add to the code?

dmitryvoronov
Автор

In grid.setColumns("firstName", "lastName", "email", "status"); can we somehow use the entity's fields to link it? I'm asking because if we changed the entity this would break easily.

barney
Автор

great tutorial, but could u fix the list (order) of videos, when I press next from this one it jumps to the #10, the #10 jumps to #5 and so on...

JoseLuisRomeroFiruzzZ
Автор

im getting an error


Description:

Parameter 0 of constructor in required a bean of type that could not be found.


Action:

AhmadRajab
Автор

Autowiring should be shown having issues on eclipse

rashvitpatel
Автор

Where can you see the users you added?

RebecaOprea-kjtf
Автор

I am getting nullpointer exception in updateList something related to autowiring of service please help me I am using eclipse

rashvitpatel
Автор

i 50% when i run "build application" i get an Error: "Could not navigate to ''
Reason: Couldn't find route for ''
Available routes:
This detailed message is only shown when running in development mode." 
is there any solution for this?

Muescha
Автор

Why muss we remove the key "company" first?

I mean why the following implementation does not work
grid.setColumns("firstName", "lastName", "email", "status");

it shows the error "...The column with key 'company' is not part of this Grid"

trdngy
join shbcf.ru