[英]ui:repeat inside composition not printing values
I am new to jsf. 我是jsf的新手。 I have the bellow code.
我有下面的代码。 When I place ui:repeat inside rich:toolbar it prints the data.
当我在rich:toolbar里面放置ui:repeat时,它会打印数据。 But when I place it after the toolbargroup inside composition tag it doesn't print anything.
但是,当我将其放置在composition标签内的toolsbargroup之后之后,它什么也不会打印。 I have a toolbar and I want to show ui:repeat data bellow that toolbar.
我有一个工具栏,我想在该工具栏下面显示ui:repeat数据。 If I place it in toolbar it shows the data but inside the toolbar not bellow it.
如果我将其放在工具栏中,则会显示数据,但在工具栏中却不会显示。 How can I place it bellow the toolbar?
如何将其放置在工具栏下方?
Thanks. 谢谢。
Update: I found out the problem. 更新:我发现了问题。 The ui:repeat tag is showing up bellow the toolbar.
ui:repeat标签显示在工具栏下方。 So how can I add position to ui:repeat?
那么如何向ui:repeat添加位置?
enter code here<h:body>
<ui:composition> <h:panelGroup layout="block">
<a4j:region>
<rich:toolbar id="header-toolbar" height="30px" itemSeparator="line">
<rich:toolbarGroup location="right" rendered="#{not empty searchType}">
<rich:menuItem
label="search"
mode="ajax"
execute="@this"
oncomplete="#{rich:component(searchFormModalPanel)}.show();"
status="status"/>
</rich:toolbarGroup> </rich:toolbarGroup>
</rich:toolbar>
</a4j:region> //Bellow doesn't show up! <ui:repeat value="#{breadCrumbMB.crumbs}" var="crumb" varStatus="crumStatus">
#{breadCrumbMB.incIndex()}
<h:outputLink value="#{crumb}">
<h:outputText value="#{breadCrumbMB.title(crumb.toString())}" rendered="${breadCrumbMB.lastLink()=='false'}"/></h:outputLink> >
<h:outputText value="#{breadCrumbMB.title(crumb.toString())}" rendered="${breadCrumbMB.lastLink()=='true'}"/>
</ui:repeat> </ui:composition>
</h:body>
尝试将ui:repeat包含在a4j:region中,如果它不起作用,请使用a4j:repeat
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.