【发布时间】:2013-04-05 04:27:36
【问题描述】:
我对 h:panelGrid 控件有疑问。我尝试在其中放置一些元素并在以下内容之间留出空间:
<h:panelGrid columns="2">
<h:outputLabel value="Output1 is: "/>
<h:inputText/>
<h:outputLabel value="Output2 is: "/>
<h:inputText/>
<h:outputLabel value="Output3 is: "/>
<h:inputText/>
</h:panelGrid>
当我使用"columns=2" 参数时,它可以正常显示。但我试图只在第一和第二之间腾出空间。并非所有组件。
我尝试使用<br/>,但它不起作用。
我使用的是 PrimeFaces 3.5 版本。
【问题讨论】:
-
您确实意识到您没有关闭 outputLabel 标记。这是原始代码吗?
标签: jsf primefaces panel