Hi all,
I have been using the enabledRule handler for actions successfully in the past but now I have created a PopupButton with three action, created enabledRule handlers for each of them but the debugger tells me the rule is never evaluated. Does it not work for PopupButtons?
<buttonsPanel>
<popupButton id="createAnimal" icon="PLUS">
<actions>
<action id="createCat" type="create" />
<action id="createDog" type="create" />
</actions>
</popupButton>
</buttonsPanel>
...
@Install(to = "createAnimal.createDog", subject = "enabledRule")
private boolean createAnimalCreateDogEnabledRule()
{
return isAnimalCreatePermitted(metadata.getClass(Dog.class));
}
Thanks for any hints!