I'm creating a dynamically generated menu. In the database, I have stored the directory (String
) of each submenu and stored in an ArrayList
in the bean. This is a part of the code:
<c:forEach items="#{controlWeb.algorithms}" var="alg">
<h:form>
<h:commandLink actionListener="#{controlWeb.setContent(PROBLEM)}" value="About"/>
</h:form>
</c:forEach>
The problem is in "PROBLEM". I want to write #{alg.algorithm1}
and it doesn't work because I think it isn't posible to nest EL expressions.
The actionListener
set the String
#{alg.algorithm1}
in another String
. How can I achieve the requirement?