Getting Started Tutorial: Listing All Articles
See original GitHub issueHi @mvysny.
I’m following the tutorial and when I arrive to section 5.8 Listing All Articles I get stuck:
vok-helloworld-app-v10/web/src/main/kotlin/com/example/vok/ArticlesView.kt: (6, 41): Unresolved reference: dataProvider
package com.example.vok
import com.github.mvysny.karibudsl.v10.*
import com.vaadin.flow.component.grid.Grid
import com.vaadin.flow.router.*
import eu.vaadinonkotlin.vaadin10.vokdb.dataProvider
@Route("articles")
class ArticlesView: KComposite(), AfterNavigationObserver {
private lateinit var grid: Grid<Article>
private val root = ui {
verticalLayout {
setSizeFull()
h1("Listing Articles")
grid = grid(dataProvider = Article.dataProvider) {
isExpand = true; setSizeFull()
addColumnFor(Article::id)
addColumnFor(Article::title)
addColumnFor(Article::text)
}
}
}
override fun afterNavigation(event: AfterNavigationEvent) {
grid.refresh()
}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (16 by maintainers)
Top Results From Across the Web
Get started with Power Pages tutorials - Microsoft Learn
Follow step-by-step tutorials to learn how to build powerful sites using Power Pages.
Read more >How to Start a Blog in 2022-23 - Easy Guide to Create a Blog ...
This easy guide on how to start a blog for beginners has step-by-step video, pictures, and free personal assistance to create your first...
Read more >Getting started with the web - Learn web development | MDN
In this article, we will show you step-by-step how to install the software you need to begin some basic web development.
Read more >Help:Getting started - Wikipedia
Linked below are some brief introductions containing all the basics you need to use, comment on, and edit Wikipedia. As a new editor,...
Read more >Get Started with World Anvil! A World Anvil Tutorial!
Go to the Articles interface on the left menu bar, and select the World Tree. Here you can click the green button to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Unresolved reference: getById everywhere
@maxbertinetti you have done a wonderful job with the new documentation site. With your permission I’m closing this issue; please feel free to open new tickets if you discover something else not working (or simply create a PR for the docs 👍 )