Viritin getToolbar() - Buttons not visible

Hi everybody,
if I use Viritins getToolbar(), I’m not able to see save and reset button. In AbstractForm I can see that they are set to be invisible.

protected Button createSaveButton() { return new PrimaryButton(getSaveCaption()) .withVisible(false); } I don’t see a function to set them easily to be visible nor do I see the necessity to do this in the invoicer example.
So:

  1. how can I make them visible ?
  2. I would like to set the visibility of these buttons depending on other attributes. How can I do this ?

Any help appreciated, many thanks in advance.

Cheers

Joern

Hi,
the buttons become visible when you set the appropriate handler (ie AbstractForm.setSavedHandler).
There are also public methods to access the buttons directly (ie AbstractForm.getSaveButton())

HTH
Marco

Got it, many thanks ! Sorry, was so obvious by looking further in the AbstractForm…