我有一个带有rowexpansion的数据表,里面有另一个数据表.结构如下:
<p:dataTable id="machine-table" value=#{machinePage.machines} var="machine" styleClass="machine-table">
<p:column style="width:16px">
<p:rowToggler rendered="#{machine.projectsInMachine.size() > 0}" />
</p:column>
some other machine column here...
<p:rowExpansion >
<p:dataTable value="#{machine.projectsInMachine}" var="project" styleClass="project-subtable" >
some project column here
</p:dataTable>
</p:rowExpansion>
Run Code Online (Sandbox Code Playgroud)
然后我有一个拉动,每隔几分钟就会检索机器和项目数据,有什么方法可以更新它并保留当前的扩展状态?因为目前它将始终关闭所有扩展(我使用下面的poll更新整个表).
<p:poll widgetVar="machinesPoll"
interval="60" listener="#{machinePage.prepare()}"
async="true" global="false"
autoStart="true" process="@this"
update="machine-table" partialSubmit="true"
ignoreAutoUpdate="true" />
Run Code Online (Sandbox Code Playgroud)
我找不到任何有关我可以保存在bean中的扩展状态的参考.我使用:primefaces 6.0,JSF 2.2.13
我正在尝试使用maven-assembly-plugin构建一个轻便的胖Web应用程序,该应用程序以后将具有不同的内容。我以为我实际上可以使用两个配置文件,mvn -Pliteweb,fatweb package所以它将为每个配置文件创建两个构建程序集。但是当我运行它时,它实际上只创建了一个位于pom(liteweb)底部位置的程序集
我已经尝试过,可以一一构建它。我也检查了一下mvn help:active-profiles -P fatweb,liteweb,它正确显示了2个活动配置文件。
下面是我的测试pom(这里不包括差异,我只希望它分别创建2个War文件和其他程序集文件)。我仍然是Maven的新手,所以我可能会误解这一点。是否可以从多个配置文件创建多个装配?
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.test.web</groupId>
<artifactId>TEST_WEB</artifactId>
<packaging>war</packaging>
<name>WEB Application</name>
<version>0.0.1</version>
<properties>
<litewebPath>src/main/lite</litewebPath>
<fatwebPath>src/main</fatwebPath>
</properties>
<profiles>
<profile>
<id>fatweb</id>
<build>
<resources>
<resource>
<directory>${fatwebPath}/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<finalName>WEB-${project.version}</finalName>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<descriptors>
<descriptor>fatassembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>exec1</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>liteweb</id>
<build>
<resources>
<resource>
<directory>${litewebPath}/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<finalName>LITEWEB-${project.version}</finalName>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<configuration>
<descriptors> …Run Code Online (Sandbox Code Playgroud)