SEVERE:
javax.validation.ValidationException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:271)
at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:110)
at com.vaadin.data.validator.BeanValidator.getJavaxBeanValidatorFactory(BeanValidator.java:167)
at com.vaadin.data.validator.BeanValidator.getJavaxBeanValidator(BeanValidator.java:182)
at com.vaadin.data.validator.BeanValidator.validate(BeanValidator.java:115)
at vaadin.scala.Validator$$anon$2$$anonfun$1.apply$mcV$sp(Validation.scala:63)
at vaadin.scala.Validator$$anon$2$$anonfun$1.apply(Validation.scala:63)
at vaadin.scala.Validator$$anon$2$$anonfun$1.apply(Validation.scala:63)
at scala.util.control.Exception$Catch$$anonfun$withTry$1.apply(Exception.scala:129)
at scala.util.control.Exception$Catch$$anonfun$withTry$1.apply(Exception.scala:129)
at scala.util.control.Exception$Catch.apply(Exception.scala:102)
at scala.util.control.Exception$Catch.withTry(Exception.scala:129)
at vaadin.scala.Validator$$anon$2.validate(Validation.scala:63)
Hi, I was just trying to use org.tepi.filtertable.FilterTable.
I have compiled it and tried to just simple replace regular Table with FilterTable in some example.
But I am getting:
[error]
\VaadinScalaUI.scala:24: inferred type arguments [org.tepi.filtertable.FilterTable]
do not conform to method add's type parameter bounds [C <: vaadin.scala.Componenton
on:
[code]
val table = new FilterTable {
addContainerProperty(“Test”, classOf[String]
, None)
}
content = new VerticalLayout {
add(table, ratio = 1)
}
[/code]Would somebody give me a hint what should I do?
set the container Property like this:
userTable.addContainerProperty(“Password”, classOf[ com.vaadin.ui.Button ]
, None)
and add the button like this:
val btn = new Button // this is a scala.vaadin.Button - but the .p refers to the wrapped com.vaadin.ui.Button
rowItem.getProperty(“Password”).value_=(btn.p)
class MyComponent extends CustomComponent with Property[String]
{
// code to implement the Property trait
}
With Scaladin the problem is that Property Trait has the same p method as CustomComponent to do the encapsulation. So the error is ovverrdie the method in p property for Property trait… is ambiguos and has diferent parameter.
I tryed this. It does not work. The problem is the syntax Account::setStatus. It does not compile (the :: notation is Java 8 lamba notation, not a part pf scala language).
If your read the las pargraph of https://vaadin.com/docs/-/part/framework/getting-started/getting-started-scala.html , it says ‘Scala does not support use of lambda expressiones for calling functional interfaces’. Vaadin expects a com.vaadin.server.Setter funcional interfaces as parameter. It don´t kno how to map the ‘::’ notation to scala.