【发布时间】:2013-11-19 11:32:54
【问题描述】:
我有以下<h:panelGrid>:
<h:panelGrid columns="2" id="panelGrid" >
<!-- heading -->
<f:facet name="header">
User Details
</f:facet>
<h:outputLabel value="#{bundle.ViewUserdetailsLabel_id}"/>
<!-- adding in a small effect here that will fade a message when a user hovers over the id number or username -->
<h:outputLink id="id1" value="#">
<h:outputText id="id" value="#{userdetailsController.selected.id}" title="#{bundle.ViewUserdetailsTitle_id}"/>
</h:outputLink>
<p:tooltip for="id" value="This is your I.D. Number" showEffect="fade" hideEffect="fade" />
<h:outputText value="#{bundle.ViewUserdetailsLabel_username}"/>
<h:outputLink id="username1" value="#">
<h:outputText id="username" value="#{userdetailsController.selected.username}" title="#{bundle.ViewUserdetailsTitle_username}"/>
</h:outputLink>
<p:tooltip for="username" value="Your registered username, this can be changed" showEffect="fade" hideEffect="fade" />
<f:facet name="footer"></f:facet>
</h:panelGrid>
我希望它显示为
用户详情 编号:500 用户名:zzzzzzzz然而,它却显示了一些空单元格:
用户详情 ID: 500 用户名: zzzzzzzz当我使用<p:panelGrid> 而不是<h:panelGrid> 时,同样的问题仍然存在。这是怎么引起的,如何解决?
【问题讨论】:
标签: jsf primefaces panelgrid