This repository has been archived by the owner on Sep 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 271
TableView column boolean field detection #560
Labels
Comments
This should be easily solved by checking if the getter.name starts with "is" followed by an upper case letter. |
Yep probably, could you just lable this issue like a bug or something? |
Done. I asked if somebody wanted to supply a PR for this in the Slack channel. If nobody has time, I'll add it during the next days :) |
Deal. Many thx. |
I added the following check to determine the property name: val startIndex = if (getter.name.startsWith("is") && getter.name[2].isUpperCase()) 2 else 3
val propName = getter.name.substring(startIndex).decapitalize() |
edvin
pushed a commit
that referenced
this issue
Dec 8, 2017
Cool. Thx Edvin. Probably this issue could be closed now. |
Thanks :) Did it work for you? |
Yep. I had checked it, from snapshot build. It seems to work fine. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi.
I just tried to build table view from java pojo bean with boolean field and default bool getter naming with is
... = tableview(model.list) { column(...) // <= this one is ok cause it getter name with get column("My bool", MyClass::isSomethingBoolean) }
and i got an empty column cause you try to extract field name like this:
and for "is" getters it wouldn't work fine.
I had avoid it by using field naming column function like
code("My bool", "somethingBoolean")
but the work of previous variant isn't look right.The text was updated successfully, but these errors were encountered: