【发布时间】:2014-08-17 10:33:11
【问题描述】:
我有一个 xhtml 页面,我在其中放置了一个 <p:tabView>,其中包含 3 个 <p:tab>。
在每个<p:tab> 中我都有一个<p:ring>。像这样:
<p:tabView>
<p:tab id="tab1">
<p:ring/>
</p:tab>
<p:tab id="tab2">
<p:ring/>
</p:tab>
<p:tab id="tab3">
<p:ring/>
</p:tab>
</p:tabView>
第一个选项卡 (tab1) 的环显示正常。但是对于其他 2 个选项卡(tab2 和 tab3 的环),环项显示在另一个之上。只有当我点击它的一些项目时,才会检索到原始配置。
他是异常显示的截图:
和普通的(当我点击一个项目时获得):
与tabView结合的环有问题还是我遗漏了什么?
**编辑:** 这是我的xhtml页面的代码(实际上是一个标签的代码):
<p:tab id="tabExec" title="Exécutable">
<p:growl id="displayE" showDetail="true" />
<h:form id="formDev">
<h:panelGrid columns="2">
<h:outputText value="Nom de l'exécutable: *" />
<p:inputText value="#{developerController.nomLivrable}"
label="Nom du livrable" required="true" />
<h:outputText value="Exécutable: *" />
<h:panelGroup layout="block">
<p:fileUpload fileUploadListener="#{ftpFileUpload.upload}"
description="Sélectionnez un fichier"
update=":BigTabView:displayE :BigTabView:formDev:outFileNameE"
style="margin-right: 20px;" required="true" label="Exécutable" />
<h:outputText id="outFileNameE"
value="#{ftpFileUpload.getFileName()}" />
</h:panelGroup>
<h:panelGroup layout="block">
<p:commandButton value="Valider"
actionListener="#{developerController.storeFile(developerController.nomLivrable)}"
update=":BigTabView:displayE :BigTabView:formDevs:historiqueDevsRing"
style="margin-right: 5px;" />
<p:commandButton value="Annuler" type="reset" />
</h:panelGroup>
</h:panelGrid>
</h:form>
<h:form id="formDevs">
<p:ring id="historiqueDevsRing"
value="#{developerController.executableList}" var="exec">
<p:graphicImage value="#{resource['images/exe.png']}"
height="100px" />
<p:commandLink value="#{exec.nomlivrable}"
actionListener="#{developerController.connectToFtpServer()}"
oncomplete="window.open('ftp://#{exec.emplacementlivrable}'); return false;"
update=":BigTabView:displayE">
</p:commandLink>
</p:ring>
</h:form>
</p:tab>
【问题讨论】:
-
没人知道这个问题吗?
标签: jsf primefaces xhtml tabview