1)
<
h:form
>
<
h:panelGrid
columns
=
"2"
>
<
c:forEach
items
=
"${mapBean.testMap}"
var
=
"entry"
>
<
h:outputText
value
=
"${entry.key}"
/>
<
h:inputText
value
=
"${entry.value}"
/>
</
c:forEach
>
</
h:panelGrid
>
</
h:form
>
2)
<h:outputText value="#{projectDetailBean.roleArtistCountMap[briefRole.projectRole.id]}"/>
3)
<h:panelGroup id="data" rendered="#{not empty agencyCouponCodesBean.couponCodesMap}">
<rich:dataTable value="#{agencyCouponCodesBean.couponCodes}" var="couponCode"
binding="#{agencyCouponCodesBean.couponCodesData}" style="width:100%;">
.................................................
<h:outputText value="#{agencyCouponCodesBean.couponCodesMap[couponCode].name}"/>
本文介绍了一种使用JSF技术实现表单输入及数据绑定的方法。通过具体示例展示了如何利用`h:form`、`h:panelGrid`等组件组织界面,并通过`c:forEach`遍历Map集合来动态生成表单项。此外还涉及了如何显示Map集合中的数据,如项目角色艺术家数量等。
1679

被折叠的 条评论
为什么被折叠?



