Skip to content

Commit 8cb74e5

Browse files
authored
Update el_intro.xhtml
Replaced ui:repeat with c:forEach
1 parent a8d9d81 commit 8cb74e5

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

‎jsf/src/main/webapp/el_intro.xhtml‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,18 @@
3232
<h:button value="Alert" onclick="alert('Hello #{ELBean.firstName}')"/>
3333
</h:panelGrid>
3434

35-
<h:outputText value="Current Request HTTP Headers:"/>
36-
<h:panelGrid columns="2" >
37-
<ui:repeat value="#{header}" var="header">
38-
<h:outputText value="#{header.key}: "/>
39-
<h:outputText value="#{header.value}"/>
40-
</ui:repeat>
41-
</h:panelGrid>
35+
<br/>
36+
<h:outputText value="Current Request HTTP Headers:"/>
37+
<table border="1">
38+
<th>Key</th>
39+
<th>Value</th>
40+
<c:forEach items="#{header}" var="header">
41+
<tr>
42+
<td>#{header.key}</td>
43+
<td>#{header.value}</td>
44+
</tr>
45+
</c:forEach>
46+
</table>
4247

4348
</h:form>
4449
</h:body>

0 commit comments

Comments
 (0)