I am trying below things
1- Not Working
<c:set var="key" value="#{outputType}" >
<h:outputText value="#{outputType}"></h:outputText>
</c:set>
2- Not Working
<c:set var="key" value="#{outputType}" >
</c:set>
<h:outputText value="#{bean.stitchingEnumMap[key]}" />
3- But this is working
<h:outputText value="#{outputType}"></h:outputText>
My problem i have to get the value from a MAP stitchingEnumMap
and for this key i am getting from <c:set/>
tag.
FYI output variable i am passing from another JSF page like this
<ui:include src="../templates/comePage.xhtml">
<ui:param name="bean" value="#{beanName}" />
<ui:param name="property" value="outputType" />
<ui:param name="outputType" value="#{record[property]}" />
</ui:include>
EDIT :-
How to access value of MAP ? I am trying something like below
<c:set var="key" value="#{outputType}" />
<h:outputText value="#{bean.stitchingEnumMap['#{key}']}" />
If this is not right way what other option can be available to access value from map?