Skip to content

Blog post comment is closed #3

@hajaUR1

Description

@hajaUR1

Hi Steve,
First thing first, thanks for sharing such valuable material.
Your blog post commenting seems closed so sorry for this github channel.

A question remains though, with such architecture what is the cleanest way to customize the error message ?
Currently, and for sake of clarity, I understand that it's hard-coded in fxml. What I want to achieve is a builder-like :

screens.errorDialog().withMessage("custom warning message").withSeverity(Severity.WARNING).show()

Trouble is that I can update fxml dialog fields' only in controller(with @FXML), but latter is injected in FXMLDialog view on build time in ScreensConfiguration. I also want to re-use FXMLDialog for other kind of dialog.

Thanks in advance,
Cheers,
Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions