for an example in an array there is
Edit –> #{testBean.edit}
Delete –> #{testBean.delete}
Copy –> #{testBean.copy}
is it possible to create commandbutton using loop or something
for(i=0;i<=array.length;i++)<br>
{
print '<h:commandbutton value="#{testBean.array.name}" action="#{testBean.array.action}" />'
}
so the output shld be like
<h:commandbutton value="Edit" action="#{testBean.edit}" />
<h:commandbutton value="Delete" action="#{testBean.delete}" />
<h:commandbutton value="Copy" action="#{testBean.copy}" />
That’s only possible if you change the collection (map?) to look something like
E.g.
You can then loop over it as follows:
As an alternative, you can create the components programmatically from in the bean side.