【发布时间】:2014-09-11 12:40:53
【问题描述】:
我正在尝试在数据网格中加载动态 xhtml。但不知何故,它在 p:outputlabel 中显示了正确的数据,并在 ui:include 中得到了一个空值。
这是我的代码 sn-p
<p:dataGrid var="myBoard" value="#{dashBoard.widgetList}" columns="2"
rows="2" paginator="true" id="widgetsGrid"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}"
rendered="#{dashBoard.boardSize gt 0}">
**// ***** Here is populate correct data ********
<p:outputLabel value="#{myBoard.endpointUrl}" />
<p:panel id="one_#{myBoard.id}">
<p:lightBox iframe="true" id="lighbox_one_#{myBoard.id}" height="550px" width="1024px" >
<h:outputLink value="display" title="#{myBoard.name}">
<ui:insert name="widgetone">
**// ******* how come this would be null? *********
<ui:include src="#{myBoard.endpointUrl}">
</ui:include>
</ui:insert>
<f:param name="id" value="#{myBoard.id}" />
</h:outputLink>
</p:lightBox>
</p:panel>
</p:dataGrid>
我确实尝试了不同的方法将其放入c:if,但无法解决相同的问题。
primefaces 是否支持此序列或实现相同的任何建议?
在此先感谢...
【问题讨论】:
标签: jsf jsf-2 primefaces datagrid facelets