[英]ui:repeat is not rendered
I wrote a web program in the Netbeans IDE 7.1.2 in java server faces and I have a problem with ui:repeat
tag 我在Netbeans IDE 7.1.2中用Java服务器
ui:repeat
编写了一个Web程序,但是ui:repeat
标签有问题
<h:form id="arrangmentForm" rendered="false" >
<ui:repeat value="#{arrangement.arItemArrangment}" var="itemArrangment" >
<h:panelGrid style="position: absolute;top:#{itemArrangment.place.top / 10}px;left: #{itemArrangment.place.left/10}px;height: 30px;width:30px">
<h:commandLink id="linkItemArrangment" actionListener="#{arrangement.showbtnArrangement()}" style="text-decoration: none;color: black">
<p:graphicImage value="../images/#{itemArrangment.place.objType}.jpg" />
<h:outputText value="#{itemArrangment.place.objTitle}" />
<br />
<h:outputText value="#{itemArrangment.gethOrder().gethOrdersTotal()}" />
<br />
<f:setPropertyActionListener value="#{itemArrangment}" target="#{arrangement.selectPlace}" />
</h:commandLink>
</h:panelGrid>
</ui:repeat>
</h:form>
This code works fine in Netbeans. 此代码在Netbeans中可以正常工作。
When I tried to deploy my program to a web server (Tomcat7, Glassfish open source and enterprise edition) the ui
tag didn't work, though, and in my web browser I just receive the form
tag and nothing else. 但是,当我尝试将程序部署到Web服务器(Tomcat7,Glassfish开源和企业版)时,
ui
标记不起作用,并且在我的Web浏览器中,我仅收到form
标记,除此之外什么也没有。
You have rendered="false"
in your h:form so nothing is display. 您已经在h:form中
rendered="false"
,因此什么也不会显示。 It's the normal behavior. 这是正常行为。
If you want to display the content of the form remove the rendered="false"
如果要显示表单的内容,请删除
rendered="false"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.