Forms make use of the Vaadin framework: by default, the LSPS Application uses Vaadin 7. Since 3.3.2082, it is possible to switch to Vaadin 8: mind that Vaadin 8 no longer supports Table and Table Tree, and you will need to tranform your Tables and Table Tree to another components, such as the Grid.
The process differs slightly on whether you have an application that was generated in an LSPS that supports Vaadin 8; that is, dependig on whether you generated your application in an LSPS version prior or after 3.3.2082.
Important: In the Vaadin 8 implementation, the following components are not supported:
- Calendar
- Table (use Grid)
- Tree
- TreeTable
To upgrade to Vaadin 8 your custom application which was generated prior to Vaadin 8 support was added, do the following:
Install the LSPS maven repository to the repository used by PDS.
If you are using the system maven repository, it is typically located in your home directory. Run cd ~/.m2/; unzip <DOWNLOADLOCATION>/lsps-repo<VERSION>.zip
lsps-human-vaadin-v7
from the lsps-human-app dependency. <dependency>
<groupId>com.whitestein.lsps.human-processes</groupId>
<artifactId>lsps-human-app</artifactId>
<!-- ADD:-->
<exclusions>
<exclusion>
<groupId>com.whitestein.lsps.human-processes</groupId>
<artifactId>lsps-human-vaadin-v7</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.whitestein.lsps.human-processes</groupId>
<artifactId>lsps-human-vaadin-v8</artifactId>
</dependency>
<applicationName>/pom.xml
: <dependency>
<groupId>com.whitestein.lsps.human-processes</groupId>
<artifactId>lsps-human-vaadin-v8</artifactId>
<version>${lsps.version}</version>
</dependency>
DefaultLspsAppConnector
in the connectors extend LspsAppConnectorImplV8
instead of LspsAppConnectorImpl
.getFormsComponentFactory()
as follows: @Override
public FormComponentFactoryV8 getFormsComponentFactory() {
return new LspsFormComponentFactory();
}
LspsFormComponentFactory
extend FormComponentFactoryV8
instead of FormComponentFactory
.LspsUIComponentFactory
extend UIComponentFactory_PureV8Impl
instead of UIComponentFactoryImpl
.@Widgetset("com.whitestein.lsps.vaadin.widgets.WidgetSet")
annotation above the class declaration.To upgrade to Vaadin 8 your custom application which was generated after the Vaadin 8 support was added, do the following:
Install the LSPS maven repository to the repository used by PDS.
If you are using the system maven repository, it is typically located in your home directory. Run cd ~/.m2/; unzip <DOWNLOADLOCATION>/lsps-repo<VERSION>.zip
lsps-human-vaadin-v7
from the lsps-human-app dependency. <dependency>
<groupId>com.whitestein.lsps.human-processes</groupId>
<artifactId>lsps-human-app</artifactId>
<!-- ADD:-->
<exclusions>
<exclusion>
<groupId>com.whitestein.lsps.human-processes</groupId>
<artifactId>lsps-human-vaadin-v7</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.whitestein.lsps.human-processes</groupId>
<artifactId>lsps-human-vaadin-v8</artifactId>
</dependency>
<applicationName>/pom.xml
: <dependency>
<groupId>com.whitestein.lsps.human-processes</groupId>
<artifactId>lsps-human-vaadin-v8</artifactId>
<version>${lsps.version}</version>
</dependency>
@Widgetset("com.whitestein.lsps.vaadin.widgets.WidgetSet")
annotation above the class declaration.return new DefaultLspsAppConnector(lspsUI);