You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.
this will lead in an exception! Of course it is None. When I add a StringConverter like this
val conv = StringConverter.toStringConverter[PatientView](r => "OKAY")
patientAdapter.addBinding(streetField.text,"${_self.postalAddress()}",Some(conv))
will lead in an exception like this
class java.lang.String cannot be cast to class de.hp.patient.api.adt.PatientView (java.lang.String is in module java.base of loader 'bootstrap'; de.hp.patient.api.adt.PatientView is in unnamed module of loader 'app')
How I can access an none and also set an Some on change?
The text was updated successfully, but these errors were encountered:
Hi,
first of all usage of the Expression Language should be only used for reading values. There for if the expression lead to an exception, there will be a problem. A solution can be a NULL safe method on your PatientView.
My personal workaround when using optional class data to edit is to use two adapters, with the dependent view is only shown, when there is an address in your case.
The Framework does not create a new PostalAddress if you use a binding path for an optional value of None.
Hi,
I have a little problem and I missing an example for that.
I have a case class like this:
And a Textfield and a binding like this:
this will lead in an exception! Of course it is None. When I add a StringConverter like this
will lead in an exception like this
How I can access an none and also set an Some on change?
The text was updated successfully, but these errors were encountered: