Demo Person Service
A simple JPA-based backend service that provides Person entities that can be used with a Vaadin application
This demo project demonstrates how to use a backend service with a Vaadin application. Source code is available in this github repo: https://github.com/amahdy/person-service/.
Watch step by step on how to use this backend in a Vaadin project
Source code for that demo and more details are all available here: https://github.com/amahdy/vaadin-stepbystep-demo-contacts
Sample code
// Code example is for Vaadin 8 // A container is needed to bind data in Vaadin 7 //Use this with version 2.x @Inject PersonService service; void load() { grid.setItems(service.getEntries()); } //Use this with version 1.x @Inject PersonService service; @PostConstruct void load() { service.loadData(); grid.setItems(service.getEntries()); }
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
- More helpful APIs on the backend service:
getFirst()
andgetById()
. - Use
LocalDate
instead ofDate
. - Link to latest Vaadin 8 intro video.
- Released
- 2017-03-03
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 6.0+
- Vaadin 7.0+
- Vaadin 8.0+
- Browser
- Browser Independent