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

  Рет қаралды 20,427

vaadinofficial

vaadinofficial

Күн бұрын

Пікірлер: 34
@pixels9964
@pixels9964 Жыл бұрын
im getting error : Consider defining a bean of type 'com.example.test.backend.repository.CompanyRepository' in your configuration.
@barney3142
@barney3142 Жыл бұрын
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.
@trdngy8230
@trdngy8230 3 жыл бұрын
Why muss we remove the key "company" first? I mean why the following implementation does not work grid.setColumns("firstName", "lastName", "email", "status"); grid.removeColumnByKey("company"); it shows the error "...The column with key 'company' is not part of this Grid"
@vaadinofficial
@vaadinofficial 3 жыл бұрын
In your example, you have explicitly set the columns to not include "company", so removing it will not work. In the tutorial, company gets automatically added because it's using `new Grid(Contact.class)`. In this case, we want to override the autogenerated column with a custom one, and want to remove the autogenerated one.
@RebecaOprea-kj1tf
@RebecaOprea-kj1tf 2 жыл бұрын
Where can you see the users you added?
@AhmadRajab
@AhmadRajab 4 жыл бұрын
im getting an error Description: Parameter 0 of constructor in org.vaadin.example.service.ContactService required a bean of type 'org.vaadin.example.backend.repositoryContactRepository' that could not be found. Action:
@vaadinofficial
@vaadinofficial 4 жыл бұрын
It seems you're missing a dot before ContactRepository in `org.vaadin.example.backend.repositoryContactRepository`
@FiruzzZ-777
@FiruzzZ-777 4 жыл бұрын
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...
@vaadinofficial
@vaadinofficial 4 жыл бұрын
Thanks for the heads up, we'll take a look at why that's happening
@vaadinofficial
@vaadinofficial 4 жыл бұрын
The videos seem to be in the correct order in the playlist and the in-video link at the end of this video is pointing correctly to the next video. Where are you pressing next when you are ending up in the wrong video? So we can look into what's causing it.
@FiruzzZ-777
@FiruzzZ-777 4 жыл бұрын
@@vaadinofficial I didn't access through the playList, I came directly to #6, so I guess the "next" in this way is a suggestion from KZbin and not related to any playlist. Sorry for the misunderstood.
@nayankumarbn3709
@nayankumarbn3709 3 жыл бұрын
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
@lumea-arboris
@lumea-arboris 4 жыл бұрын
This is amazing. Thank you very much, this is an amazing technology
@rashvitpatel9269
@rashvitpatel9269 4 жыл бұрын
I am getting nullpointer exception in updateList something related to autowiring of service please help me I am using eclipse
@vaadinofficial
@vaadinofficial 4 жыл бұрын
Autowiring is a part of Spring, so it works the same regardless of the IDE you use. Please check your code against the finished source code here and see if you can spot the issue: github.com/vaadin-learning-center/crm-tutorial
@rashvitpatel9269
@rashvitpatel9269 4 жыл бұрын
@@vaadinofficial ok sir till now I have done upto this video and I tried autowiring services as well as repos inside the services but still getting the same null pointer exception. I will look into the github code and proceed from there
@Muescha
@Muescha 4 жыл бұрын
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
@Muescha 4 жыл бұрын
i found that adding `@SpringBootApplication(scanBasePackages = {"com.vaadin"})` to the `Application` class seems to work
@Muescha
@Muescha 4 жыл бұрын
more possible settings i found here: github.com/spring-projects/spring-boot/issues/18109
@Muescha
@Muescha 4 жыл бұрын
i think it would be nice to add `scanBasePackages` to the tutorial, so beginners are not have this error
@lauraarias316
@lauraarias316 4 жыл бұрын
This is really helpful, thank you!
@vaadinofficial
@vaadinofficial 4 жыл бұрын
Thank you for your feedback. Great to hear that 😊
@Muescha
@Muescha 4 жыл бұрын
where exactly was this info about the library reload?
@volkerbechtel8762
@volkerbechtel8762 3 жыл бұрын
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 grid.addColumn("amount").setRenderer(new NumberRenderer((ValueProvider) new DecimalFormat("$ #,##0.00"))); what do i wrong ? Thanks !
@luisluiscunha
@luisluiscunha 3 жыл бұрын
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+
@dmitryvoronov669
@dmitryvoronov669 4 жыл бұрын
Hi! How do I create a pagination in vaadin with datagrid? What should I add to the code?
@marcushellberg13
@marcushellberg13 4 жыл бұрын
You can use the callback based DataProvider instead of passing a List: vaadin.com/docs/v14/flow/binding-data/tutorial-flow-data-provider.html#lazy-loading-data-from-a-backend-service
@rashvitpatel9269
@rashvitpatel9269 4 жыл бұрын
Autowiring should be shown having issues on eclipse
@hsuanyang9887
@hsuanyang9887 3 жыл бұрын
really helpful
@Takigavin
@Takigavin 4 жыл бұрын
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(); }).setHeader("Company").setSortable(true);
@marcushellberg13
@marcushellberg13 4 жыл бұрын
Good catch, thanks!
Java tutorial: Filtering Java entities in a data grid (part 7)
6:43
vaadinofficial
Рет қаралды 14 М.
Java tutorial: Data binding and validation in Vaadin forms  (part 9)
13:28
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
No `composables` folder in Nitro - but WHY?
12:36
Alexander Lichter
Рет қаралды 705
Session Vs JWT: The Differences You May Not Know!
7:00
ByteByteGo
Рет қаралды 300 М.
Marimo Notebooks Intro | Charting Python's rise in popularity
18:15
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 882 М.
Стыдные вопросы про Китай / вДудь
3:07:50
вДудь
Рет қаралды 1,4 МЛН
Java tutorial: Communicating between UI components in Vaadin  (part 10)
13:57
The ULTIMATE Guide to Spring Boot: Spring Boot for Beginners
6:13:53
Something is wrong with ISPs in India 🇮🇳
13:17
Mehul - Codedamn
Рет қаралды 64 М.