I have an own Button class which has a method
void setDisplayPermissions(String[] displayPermissions)
where it is specified for the button which are the required permissions needed for showing the button.
In the example bellow i can set that the button should be shown only when the user has the FINISH_ORDER function right.
<a:Button ui:field="finishButton" displayPermissions="{Rights.getFinishOrder}"/>
(Rights is an application specific class where there are getters defined for all the function rights names from the application)
Now I'd like to show this button when the user has FINISH_ORDER or CANCEL_ORDER function right.
Can anybody suggest me how to do this (elegantly) through the declarative UI within a .ui.xml file?
Thanks in advance.