ExpandingTextArea component

André Schild:

Shruthi Kulai:

André Schild:
Hello,

thanks for the component, it works as intended and the fork on github for V8 also works with vaadin 8.

I wonder if someone has an idea, on to acomplish this:

  • We have a gridlayout with 2 or more ExpandingTextAreas in the same line
  • Expand/shrink in horizontal works fine
  • When the content of the different ExpandingTextAreas in the same grid row have different number of lines, then I would like to have all ExpandingTextAreas in that row to have the same height, the height of the heighest ExpandingTextArea

I tried with different listener and setting setRows(…) with the largest value, but to no avail.

Any ideas?

Hello,
Could you please explain how did you use the fork with Vaadin 8?

Thanks

Just make a copy on your disk and build the project, you can then use it directly when it’s in your local maven repository

Hi,

I did a clone on my disk and tried doing ‘sbt compile’ from the root folder. However, I get this error on compilation

[info]
Compiling 5 Java sources to C:\Users\Administrator\Downloads\ExpandingTextArea\addon\target\classes…
java.io.IOException: Cannot run program “javac” (in directory “C:\Users\Administrator\Downloads\ExpandingTextArea”): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:349)
at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:128)
at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:159)
at sbt.AbstractProcessBuilder$$anonfun$runBuffered$1.apply(ProcessImpl.scala:159)
at sbt.compiler.javac.JavacLogger.buffer(JavacProcessLogger.scala:31)
at sbt.AbstractProcessBuilder.runBuffered(ProcessImpl.scala:159)
at sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:156)
at sbt.compiler.javac.ForkedJava$$anonfun$launch$1.apply(ForkedJava.scala:24)
at sbt.compiler.javac.ForkedJava$$anonfun$launch$1.apply(ForkedJava.scala:17)
at sbt.compiler.javac.ForkedJava$$anonfun$withArgumentFile$1.apply(ForkedJava.scala:47)
at sbt.compiler.javac.ForkedJava$$anonfun$withArgumentFile$1.apply(ForkedJava.scala:44)
at sbt.IO$.withTemporaryDirectory(IO.scala:358)

[error]
(addon/compile:compileIncremental) java.io.IOException: Cannot run program “javac” (in directory “C:\Users\Administrator\Downloads\ExpandingTextArea”): CreateProcess error=2, The system cannot find the file specified

I am new to building projects with SBT. Could you please tell me if I am doing something incorrectly?

I’m trying to upgrade a vaadin app fron 7.7.17 to 8 but:

[INFO]
 --- vaadin-maven-plugin:8.9.2:compile (default) @ jufo-portlet ---
[INFO]
 auto discovered modules [com.arcusys.jufo.portlets.JufoWidgetset]

[INFO]
 Using com.vaadin:vaadin-client-compiler version 8.9.2
[INFO]
 Compiling module com.arcusys.jufo.portlets.JufoWidgetset
[INFO]
    Tracing compile failure path for type 'org.vaadin.hene.expandingtextarea.widgetset.client.ui.ExpandingTextAreaConnector'
[INFO]
       [ERROR]
 Errors in 'jar:file:/home/pj/.m2/repository/org/vaadin/addons/expandingtextarea/1.2.0/expandingtextarea-1.2.0.jar!/org/vaadin/hene/expandingtextarea/widgetset/client/ui/ExpandingTextAreaConnector.java'
[INFO]
          [ERROR]
 Line 24: The method updateFromUIDL(UIDL, ApplicationConnection) of type ExpandingTextAreaConnector must override or implement a supertype method
[INFO]
          [ERROR]
 Line 25: The method updateFromUIDL(UIDL, ApplicationConnection) is undefined for the type TextAreaConnector
[INFO]
    [ERROR]
 Aborting compile due to errors in some input files

I got source from github, install sbt and run package without error but with too small result:

 ls -la target/
 -rw-r--r--. 1 pj csc  285 Nov 14 11:51 expandingtextarea-1.2.1.jar

It would be nice if you would like to publish vaadin 8 version.