ActionCommand in FormPages
Hi all,
what is the best way to handle ActionCommand in FormPages?
I came up with this:
Code:
protected JComponent createControl() {
Application.services().getCommandConfigurer().configure(actionCommand);
...
JButton actionCommandButton = actionCommand.createButton();
}
private final ActionCommand actionCommand = new ActionCommand("actionCommand") {
public void doExecuteCommand() {
...
}
}
This works, but it don't feel right for me. What if i want to create a popup like the petclinic sample in OwnerManagerView? (getCommandManger())
Is there a possibility to get the ViewContext or the CommandManager from a FormPage?
siu
Claudio