Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using JavaBeanXXProperty will not update the model #59

Open
devent opened this issue Nov 3, 2021 · 0 comments
Open

Using JavaBeanXXProperty will not update the model #59

devent opened this issue Nov 3, 2021 · 0 comments

Comments

@devent
Copy link

devent commented Nov 3, 2021

Hello. I used the JavaBeanDoubleProperty, JavaBeanStringProperty, etc. in my model, but the form is not updating the fields if changed in the GUI.

        p = new ObservableGameMainPaneProperties.GameMainPaneProperties();
        np = new ObservableGameMainPaneProperties(p);
        this.form = Form.of(Group.of(//
                Field.ofStringType(np.kernelName).label("Name").required("Not empty"), //
                Field.ofIntegerType(np.seed).label("Seed").required("Not empty"), //
                Field.ofIntegerType(np.width).label("Width").required("Not empty"), //
                Field.ofIntegerType(np.height).label("Height").required("Not empty"), //
                Field.ofDoubleType(np.z).label("Z").required("Not empty"), //
                Field.ofIntegerType(np.dim).label("Dimension").required("Not empty") //
        ));

I created a demo project https://github.com/devent/formsfx-javabeanproperty-test
You have to change the field "Dimension" to "4". I expect that if I do that then the field ObservableGameMainPaneProperties#GameMainPaneProperties#dim is also set to 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant