Hello all together,
i have got a difficult topic today.
I want to generate action methods dynamic from a backing bean.
What have i did yet.
I generate a list of Buttons (endButtonList) in a manageBean called "frameController".
Everything is working fine, but the methodexpression did not work, because the action of each button didn't go to the generated action.
It goes instead to #{endButton.action}.
That is wrong.
So from my point of view, i need a statement like
action="#{#{endButton.actionListener}}" to get my value for the correct action.
But that didn't work.
Do you have an idea ?
Thanxs
Michael
Here is the code example:
<c:forEach var="endButton"
items="#{frameController.endButtonList}">
<a4j:commandButton
binding="#{endButton}"
alt="#{endButton.alt}"
action="#{endButton.action}"
actionListener="#{endButton.actionListener}"
disabled="#{endButton.disabled}"
image="#{endButton.image}"
immediate="#{endButton.immediate}"
label="#{endButton.label}"
id="#{endButton.id}"
rendered="#{endButton.rendered}"
styleClass="#{endButton.styleClass}"
type="#{endButton.type}" value="#{endButton.value}">
</a4j:commandButton>
</c:forEach>