Rendering in portlets

Is it possible to force Vaadin portlets rendering at the same time as remainder of the portal ? Or around the same moment as other non-vaadin portlets ?

I am using Vaadin 7 with Liferay 6.1 and I couldn’t find a way to force that. Initial blank space on page load is easily noticable and delayed rendering of Vaadin portlets makes the whole page feel sluggish.
Setting ajaxable to false doesn’t make a difference.

The render phase of a portlet (in any JSR-286 compliant portal) produces HTML, which in the case of a Vaadin portlet is just the bootstrap loader JS that loads the actual application content with a separate request.

Unless you somehow add code in the Vaadin bootstrap loader to keep the page looking blank (e.g. with CSS or some overlay) until Vaadin applications have loaded, I don’t really see a way for the application of affect the loading of the rest of the page. Even if doing so, some flashing of the content might occur before it is hidden.

Home page using jquery. Portlet plugin display information, and add a to-do tasks list portlet, at the same time release 1.3.3

what’s the problem with this code

<?xml version="1.0" encoding="UTF-8"?>


4.0.0
me.kafeitu.demo
kft-activiti-demo
1.3.3
war
Activiti demo
activiti demo for version 5.10

<developers>
	<developer>
		<id>henryyan</id>
		<name>Henry Yan</name>
		<email>yanhonglei@gmail.com</email>
		<url>http://www.kafeitu.me</url>
		<timezone>8</timezone>
	</developer>
</developers>

<!-- 项目属性 -->
<properties>
	<jdk.version>1.6</jdk.version>
	<spring.version>3.1.2.RELEASE</spring.version>
	<hibernate.version>4.1.4.Final</hibernate.version>
	<mybatis.version>3.1.1</mybatis.version>
	<spring-data-jpa.version>1.1.0.RELEASE</spring-data-jpa.version>
	<commons-dbcp.version>1.4</commons-dbcp.version>
	<sitemesh.version>2.4.2</sitemesh.version>
	<cxf.version>2.6.1</cxf.version>
	<jersey.version>1.13</jersey.version>
	<shiro.version>1.2.0</shiro.version>
	<activemq.version>5.5.1</activemq.version>
	<quartz.version>2.1.5</quartz.version>
	<ehcache.version>2.5.2</ehcache.version>
	<hibernate-validator.version>4.3.0.Final</hibernate-validator.version>
	<jackson.version>2.0.4</jackson.version>
	<spymemcached.version>2.8.1</spymemcached.version>
	<jolokia.version>1.0.4</jolokia.version>
	<guava.version>12.0</guava.version>
	<commons-lang3.version>3.1</commons-lang3.version>
	<commons-io.version>2.4</commons-io.version>
	<joda-time.version>2.1</joda-time.version>
	<dozer.version>5.3.2</dozer.version>
	<freemarker.version>2.3.19</freemarker.version>
	<poi.version>3.8</poi.version>
	<slf4j.version>1.6.6</slf4j.version>
	<log4j.version>1.2.17</log4j.version>
	<jetty.version>7.6.4.v20120524</jetty.version>
	<h2.version>1.3.167</h2.version>
	<junit.version>4.10</junit.version>
	<mockito.version>1.9.0</mockito.version>
	<powermock.version>1.4.12</powermock.version>
	<selenium.version>2.24.1</selenium.version>
	<activiti.version>5.10</activiti.version>

	<!-- jdbc h2 -->
	<jdbc.driver.groupId>com.h2database</jdbc.driver.groupId>
	<jdbc.driver.artifactId>h2</jdbc.driver.artifactId>
	<jdbc.driver.version>1.3.166</jdbc.driver.version>

	<!-- jdbc mysql
	<jdbc.driver.groupId>mysql</jdbc.driver.groupId>
	<jdbc.driver.artifactId>mysql-connector-java</jdbc.driver.artifactId>
	<jdbc.driver.version>5.1.11</jdbc.driver.version> -->

	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
	<repository>
		<id>Activiti</id>
		<url>https://maven.alfresco.com/nexus/content/groups/public</url>
	</repository>
	<repository>
		<id>Codehaus</id>
		<url>http://repository.codehaus.org</url>
	</repository>
</repositories>

<!-- 依赖项定义 -->
<dependencies>
	<!-- activiti -->
	<dependency>
		<groupId>org.activiti</groupId>
		<artifactId>activiti-engine</artifactId>
		<version>${activiti.version}</version>
	</dependency>
	<dependency>
		<groupId>org.activiti</groupId>
		<artifactId>activiti-spring</artifactId>
		<version>${activiti.version}</version>
	</dependency>

	<!-- Jackson JSON Mapper -->
	<!-- SpringMVC的@ResponseBody需要使用 -->
	<dependency>
		<groupId>org.codehaus.jackson</groupId>
		<artifactId>jackson-mapper-asl</artifactId>
		<version>1.9.7</version>
	</dependency>

	<!-- UTILS -->
	<dependency>
		<groupId>commons-io</groupId>
		<artifactId>commons-io</artifactId>
		<version>${commons-io.version}</version>
	</dependency>
	<dependency>
		<groupId>commons-fileupload</groupId>
		<artifactId>commons-fileupload</artifactId>
		<version>1.2.2</version>
	</dependency>

	<!-- SPRING begin -->
	<!-- spring basic -->
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-core</artifactId>
		<version>${spring.version}</version>
		<exclusions>
			<exclusion>
				<groupId>commons-logging</groupId>
				<artifactId>commons-logging</artifactId>
			</exclusion>
		</exclusions>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-beans</artifactId>
		<version>${spring.version}</version>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-context</artifactId>
		<version>${spring.version}</version>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-context-support</artifactId>
		<version>${spring.version}</version>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-aop</artifactId>
		<version>${spring.version}</version>
	</dependency>
	<dependency>
		<groupId>org.aspectj</groupId>
		<artifactId>aspectjrt</artifactId>
		<version>1.6.9</version>
	</dependency>
	<dependency>
		<groupId>org.aspectj</groupId>
		<artifactId>aspectjweaver</artifactId>
		<version>1.6.9</version>
	</dependency>
	<dependency>
		<groupId>cglib</groupId>
		<artifactId>cglib</artifactId>
		<version>2.2.2</version>
	</dependency>
	<dependency>
		<groupId>asm</groupId>
		<artifactId>asm</artifactId>
		<version>3.3.1</version>
	</dependency>
	<!-- SPRING end -->

	<!-- PERSISTENCE begin -->
	<!-- hibernate -->
	<dependency>
		<groupId>org.hibernate</groupId>
		<artifactId>hibernate-core</artifactId>
		<version>${hibernate.version}</version>
	</dependency>
	<dependency>
		<groupId>org.hibernate</groupId>
		<artifactId>hibernate-entitymanager</artifactId>
		<version>${hibernate.version}</version>
	</dependency>
	<dependency>
		<groupId>org.hibernate</groupId>
		<artifactId>hibernate-ehcache</artifactId>
		<version>${hibernate.version}</version>
	</dependency>
	<dependency>
		<groupId>org.hibernate.javax.persistence</groupId>
		<artifactId>hibernate-jpa-2.0-api</artifactId>
		<version>1.0.1.Final</version>
	</dependency>

	<!-- spring data access -->
	<dependency>
		<groupId>org.springframework.data</groupId>
		<artifactId>spring-data-jpa</artifactId>
		<version>${spring-data-jpa.version}</version>
		<exclusions>
			<exclusion>
				<groupId>junit</groupId>
				<artifactId>junit-dep</artifactId>
			</exclusion>
		</exclusions>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-orm</artifactId>
		<version>${spring.version}</version>
	</dependency>
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-jdbc</artifactId>
		<version>${spring.version}</version>
	</dependency>

	<!-- dbcp connection pool -->
	<dependency>
		<groupId>commons-dbcp</groupId>
		<artifactId>commons-dbcp</artifactId>
		<version>${commons-dbcp.version}</version>
	</dependency>

	<!-- jdbc driver -->
	<dependency>
		<groupId>${jdbc.driver.groupId}</groupId>
		<artifactId>${jdbc.driver.artifactId}</artifactId>
		<version>${jdbc.driver.version}</version>
		<scope>runtime</scope>
	</dependency>
	<!-- PERSISTENCE end -->

	<!-- WEB begin -->
	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-webmvc</artifactId>
		<version>${spring.version}</version>
	</dependency>

	<dependency>
		<groupId>opensymphony</groupId>
		<artifactId>sitemesh</artifactId>
		<version>${sitemesh.version}</version>
	</dependency>

	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>jstl</artifactId>
		<version>1.2</version>
	</dependency>

	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>servlet-api</artifactId>
		<version>2.5</version>
		<scope>provided</scope>
	</dependency>
	<!-- WEB end -->

	<!-- CACHE -->
	<dependency>
		<groupId>net.sf.ehcache</groupId>
		<artifactId>ehcache-core</artifactId>
		<version>${ehcache.version}</version>
	</dependency>

	<!-- LOGGING begin -->
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>${slf4j.version}</version>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-log4j12</artifactId>
		<version>${slf4j.version}</version>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>jcl-over-slf4j</artifactId>
		<version>${slf4j.version}</version>
	</dependency>
	<dependency>
		<groupId>log4j</groupId>
		<artifactId>log4j</artifactId>
		<version>${log4j.version}</version>
	</dependency>
	<!-- LOGGING end -->

	<!-- GENERAL UTILS begin -->
	<dependency>
		<groupId>org.apache.commons</groupId>
		<artifactId>commons-lang3</artifactId>
		<version>${commons-lang3.version}</version>
	</dependency>
	<dependency>
		<groupId>commons-beanutils</groupId>
		<artifactId>commons-beanutils</artifactId>
		<version>1.8.3</version>
		<exclusions>
			<exclusion>
				<groupId>commons-logging</groupId>
				<artifactId>commons-logging</artifactId>
			</exclusion>
		</exclusions>
	</dependency>

	<dependency>
		<groupId>com.google.guava</groupId>
		<artifactId>guava</artifactId>
		<version>${guava.version}</version>
	</dependency>
	<dependency>
		<groupId>org.jodd</groupId>
		<artifactId>jodd</artifactId>
		<version>3.3.2</version>
	</dependency>
	<dependency>
		<groupId>joda-time</groupId>
		<artifactId>joda-time</artifactId>
		<version>${joda-time.version}</version>
	</dependency>
	<!-- GENERAL UTILS end -->

	<!-- TEST begin -->
	<dependency>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<version>${junit.version}</version>
		<scope>test</scope>
	</dependency>

	<dependency>
		<groupId>org.mockito</groupId>
		<artifactId>mockito-core</artifactId>
		<version>${mockito.version}</version>
		<scope>test</scope>
	</dependency>

	<dependency>
		<groupId>org.powermock</groupId>
		<artifactId>powermock-module-junit4</artifactId>
		<version>${powermock.version}</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.powermock</groupId>
		<artifactId>powermock-api-mockito</artifactId>
		<version>${powermock.version}</version>
		<scope>test</scope>
		<exclusions>
			<exclusion>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-all</artifactId>
			</exclusion>
		</exclusions>
	</dependency>

	<dependency>
		<groupId>org.springframework</groupId>
		<artifactId>spring-test</artifactId>
		<version>${spring.version}</version>
	</dependency>

	<dependency>
		<groupId>com.h2database</groupId>
		<artifactId>h2</artifactId>
		<version>${h2.version}</version>
	</dependency>

	<dependency>
		<groupId>org.dbunit</groupId>
		<artifactId>dbunit</artifactId>
		<version>2.4.8</version>
	</dependency>

	<!-- jetty -->
	<dependency>
		<groupId>org.eclipse.jetty.aggregate</groupId>
		<artifactId>jetty-webapp</artifactId>
		<version>${jetty.version}</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>org.eclipse.jetty</groupId>
		<artifactId>jetty-jsp</artifactId>
		<version>${jetty.version}</version>
		<scope>test</scope>
	</dependency>
	<!-- TEST end -->
</dependencies>

<build>
	<plugins>
		<!-- compiler插件, 设定JDK版本 -->
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>2.5</version>
			<configuration>
				<source>${jdk.version}</source>
				<target>${jdk.version}</target>
				<showWarnings>true</showWarnings>
			</configuration>
		</plugin>

		<!-- test插件, 设置內存/ClassLoader -->
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-surefire-plugin</artifactId>
			<version>2.12</version>
			<configuration>
				<argLine>-Xmx256M</argLine>
			</configuration>
		</plugin>

		<!-- cobertura插件, 设置不需要计算覆盖率的类 -->
		<plugin>
			<groupId>org.codehaus.mojo</groupId>
			<artifactId>cobertura-maven-plugin</artifactId>
			<version>2.5.1</version>
			<configuration>
				<instrumentation>
					<excludes>
						<exclude>**/entity/**/*.class</exclude>
						<exclude>**/*Controller.class</exclude>
					</excludes>
				</instrumentation>
			</configuration>
		</plugin>

		<!-- eclipse插件, 设定wtp版本并添加springIDE nature -->
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-eclipse-plugin</artifactId>
			<version>2.9</version>
			<configuration>
				<wtpversion>2.0</wtpversion>
				<additionalProjectnatures>
					<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
				</additionalProjectnatures>
			</configuration>
		</plugin>

		<!-- jetty插件, 设定context path与spring profile -->
		<plugin>
			<groupId>org.mortbay.jetty</groupId>
			<artifactId>jetty-maven-plugin</artifactId>
			<version>${jetty.version}</version>
			<configuration>
				<systemProperties>
					<systemProperty>
						<name>spring.profiles.active</name>
						<value>development</value>
					</systemProperty>
				</systemProperties>
				<useTestClasspath>true</useTestClasspath>

				<webAppConfig>
					<contextPath>/${project.artifactId}</contextPath>
				</webAppConfig>
			</configuration>
		</plugin>

		<!-- resource插件 -->
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-resources-plugin</artifactId>
			<version>2.5</version>
			<configuration>
				<nonFilteredFileExtensions>
					<!-- 过滤流程定义资源文件 -->
					<nonFilteredFileExtension>zip</nonFilteredFileExtension>
					<nonFilteredFileExtension>bar</nonFilteredFileExtension>
					<nonFilteredFileExtension>png</nonFilteredFileExtension>
					<nonFilteredFileExtension>activiti</nonFilteredFileExtension>
					<nonFilteredFileExtension>bpmn</nonFilteredFileExtension>
				</nonFilteredFileExtensions>
				<encoding>${project.build.sourceEncoding}</encoding>
			</configuration>
		</plugin>
	</plugins>
</build>

<profiles>
	<!-- 开发环境 -->
	<profile>
		<id>kft-activiti-demo</id>
		<activation>
			<activeByDefault>true</activeByDefault>
		</activation>
		<build>
			<resources>
				<resource>
					<directory>src/main/resources</directory>
					<filtering>true</filtering>
				</resource>
			</resources>
		</build>
	</profile>

	<!-- deploy war to aws -->
	<profile>
		<id>travis-ci-aws</id>
		<build>
			<plugins>
				<plugin>
				    <groupId>org.apache.tomcat.maven</groupId>
				    <artifactId>tomcat7-maven-plugin</artifactId>
				    <version>2.0-beta-1</version>
				    <configuration>
				    	<username>admin</username>
						<password>kadtomcatpwd</password>
						<url>http://aws.kafeitu.me:8080/manager</url>
				    </configuration>
				</plugin>
			</plugins>
		</build>
	</profile>

	<!-- deploy war to localhost -->
	<profile>
		<id>local</id>
		<build>
			<plugins>
				<plugin>
				    <groupId>org.apache.tomcat.maven</groupId>
				    <artifactId>tomcat7-maven-plugin</artifactId>
				    <version>2.0-beta-1</version>
				    <configuration>
				    	<server>kadtomcat7</server>
				    </configuration>
				</plugin>
			</plugins>
		</build>
	</profile>

	<!-- 刷新开发环境数据库 -->
	<profile>
		<id>refresh-db</id>
		<build>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-antrun-plugin</artifactId>
					<version>1.7</version>
					<configuration>
						<target>
							<property file="src/main/resources/application.local.properties" />
							<property file="src/main/resources/application.properties" />

							<property name="sql.type" value="${sql.type}" />
							<property name="dbunit.datatype" value="org.dbunit.ext.h2.H2DataTypeFactory" />

							<taskdef name="dbunit" classname="org.dbunit.ant.DbUnitTask" classpathref="maven.test.classpath" />
							<!-- base -->
							<sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}"
								src="src/main/resources/sql/${sql.type}/schema.sql" onerror="continue">
								<classpath refid="maven.test.classpath" />
							</sql>

							<!-- activit start -->
							<sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}"
								src="src/main/resources/sql/${sql.type}/drop/activiti.${sql.type}.drop.engine.sql" onerror="continue">
								<classpath refid="maven.test.classpath" />
							</sql>

							<sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}"
								src="src/main/resources/sql/${sql.type}/drop/activiti.${sql.type}.drop.history.sql" onerror="continue">
								<classpath refid="maven.test.classpath" />
							</sql>

							<sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}"
								src="src/main/resources/sql/${sql.type}/drop/activiti.${sql.type}.drop.identity.sql" onerror="continue">
								<classpath refid="maven.test.classpath" />
							</sql>

							<sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}"
								src="src/main/resources/sql/${sql.type}/create/activiti.${sql.type}.create.engine.sql" onerror="continue">
								<classpath refid="maven.test.classpath" />
							</sql>

							<sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}"
								src="src/main/resources/sql/${sql.type}/create/activiti.${sql.type}.create.history.sql" onerror="continue">
								<classpath refid="maven.test.classpath" />
							</sql>

							<sql driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}"
								src="src/main/resources/sql/${sql.type}/create/activiti.${sql.type}.create.identity.sql" onerror="continue">
								<classpath refid="maven.test.classpath" />
							</sql>
							<!-- activit end -->

							<!-- add init datas -->
							<dbunit driver="${jdbc.driver}" url="${jdbc.url}" userid="${jdbc.username}" password="${jdbc.password}">
								<dbconfig>
									<property name="datatypeFactory" value="${dbunit.datatype}" />
								</dbconfig>
								<classpath refid="maven.test.classpath" />
								<operation type="CLEAN_INSERT" src="src/test/resources/data/sample-data.xml" format="flat"
									transaction="true" />
							</dbunit>
						</target>
					</configuration>
				</plugin>
			</plugins>
		</build>
	</profile>
</profiles>
pcb.hqew.net

This post seems almost completely unrelated to the previous ones in the thread (so it should have a separate thread), contains a vague “what is wrong with this” question without really specifying the problem and has a large amount of configuration without the related source code.

I don’t think anybody will have the time to read through the configuration and try to guess what might be wrong with it, at least without clear information about what problem you are seeing.