How to access Map in JSF
Posted
by
Muneeswaran Balasubramanian
on Stack Overflow
See other posts from Stack Overflow
or by Muneeswaran Balasubramanian
Published on 2010-12-29T02:49:39Z
Indexed on
2010/12/29
2:53 UTC
Read the original article
Hit count: 335
Hi to all,
I have try to access the map in jsf using C:foreach.But i can't access that in jsf by using"#" symbol.But i can access it using "$" symbol.But i need to access to displayed using jsf component h:outputtext.My sample code is
h:form binding="#{MapInJsf.initForm}">
<c:forEach items="#{MapInJsf.nameMap}" var="nameMap">
<%--<li>${nameMap.key}</li>--%> I cann access it
<%--<h:outputText value="#{nameMap}"/>--%>
<h:outputText value="Name2 : #{nameMap.key}"/>
<h:outputText value="Last Name1 : #{nameMap.value}"/>
</c:forEach>
</h:form>
what i do wrong and how can i access that?My Ref link is Dynamic value binding of JSF component Please help me.
© Stack Overflow or respective owner