« Return to Thread: [core] New Desktop Database Application Wizard resulting application behaviour
Jana Maleckova wrote:Hi Robert again ;),
complication connected with creating new record in detailed table there
is known issue. This is a consequence of the latest update of Beans
Binding library. We don't want to deal with ObservableCollections in our
master/detail template (it is not straightforward when using JPA).
Hence, we force the update of the detail table by un-selection and
re-selection of the corresponding row in the master table. This worked
with the previous versions of the library because they worked as if they
had 'sourceUnreadableValue' set to 'null' for all bindings. Now, when
the selection is cleared then nothing happens because
'sourceUnreadableValue' is not set for 'detailTable.elements' binding.
The fix is to set 'sourceUnreadableValue' of this binding to 'null'. It
has been already solved in trunk, but not for NetBeans 6.0 because it's
too late :o(. If you want to fix that in form/application generated by
NetBeans 6.0, follow these steps:
1. Select detailTable
2. Switch to Binding category in Properties window
3. Select elements property
4. Invoke property customizer (Press ... button)
5. Switch to Advanced tab.
6. Check 'Unreadable Source Value' (<none> should be selected in combo
next to this check-box).
7. Press OK.
FOR NOTE:
All the templates which are generated during building process of JDA
project, should demonstrate the way how to use JPA and beans binding. We
don't want to overload users with very complicated code. and therefore
please don't confirm this as a real - world application. It's really
just a sample.
Thanks for understanding ;o)
Regards
Janie
« Return to Thread: [core] New Desktop Database Application Wizard resulting application behaviour
| Free embeddable forum powered by Nabble | Forum Help |