question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting Started Tutorial: Listing All Articles

See original GitHub issue

Hi @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:closed
  • Created 3 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
eclecticlly-indie-gamecommented, Mar 14, 2021
import com.github.vokorm.getById

Unresolved reference: getById everywhere

0reactions
mvysnycommented, Apr 7, 2021

@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 👍 )

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found