(newcommer) problems with scaladin

hello

I installed eclipse indigo JEE x64 on windows 7 x64, and then the vaadin and scala plugins(vaadin : 2.0.1, bundle : 6.8.4 ; scala : 2.0.2).

finally, I imported the jar of scaladin (scaladin_2.9.2-2.0.0.jar).

I created a vaadin project in eclipse, then I removed the java generated file, and then I created this file :


package com.example.scalatest3

import vaadin.scala._

class Scalatest3Application extends Application {

def buttonClick() {

//    label.setValue("Button clicked")
//    button.setEnabled(false)

}

def init(): Unit = {

//getMainWindow.addComponent(new Label("Hello World!"))

val layout = new vaadin.scala.VerticalLayout(width = 100 pct, height = 100 pct) {

  add(new Button("click me!", _ => buttonClick()))

}

getMainWindow.setContent(layout)

}

}**********************************************************

(I forgot I have alse added the scala libraries and the scaladin jar in the web deployment assembly, in eclispe)

eclipse raises these errors:

in the lines where there is “verticalLayout” and “Button” :


Multiple markers at this line
- too many arguments for constructor VerticalLayout: (p:
com.vaadin.ui.VerticalLayout with
vaadin.scala.mixins.VerticalLayoutMixin)vaadin.scala.VerticalLayout
- too many arguments for constructor VerticalLayout: (p:
com.vaadin.ui.VerticalLayout with
vaadin.scala.mixins.VerticalLayoutMixin)vaadin.scala.VerticalLayout


can you tell me if there are some libraries I missed (with scaladin?) or what is going wrong.

thank you!:grin:

I have solved the problem, please go to my new problem (!) to see a functional program.