我有以下内容<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>
. 这是如何引起的,我该如何解决?