Major
Detail
Detail
#27027
Declarative forms: SelectField disappears after upload if option list depends on mandatory property
#27042
MaintenanceJspBase should write to the log first, then to the client, instead of the other way around.
Bugfix
(User-visible)
Detail
#27170
ClassCastException on representation of a tl.core:DateTime attribute in a composition table
If the target type of a composition attribute(containment) contains a timestamp attribute of type tl.core:DateTime ("date with time"), the representation of containment in the table generates a ClassCastException:
Caused by: java.lang.ClassCastException: class com.top_logic.layout.form.model.DateTimeField$DateTime cannot be cast to class java.lang.String (com.top_logic.layout.form.model.DateTimeField$DateTime is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap') at com.top_logic.layout.form.control.TextInputControl.writeImmutable(TextInputControl.java:428) at com.top_logic.layout.form.control.AbstractFormFieldControl.writeVisible(AbstractFormFieldControl.java:66) at com.top_logic.layout.form.control.AbstractFormFieldControl.doInternalWrite(AbstractFormFieldControl.java:53) at com.top_logic.layout.form.control.AbstractFormFieldControlBase.internalWrite(AbstractFormFieldControlBase.java:249) at com.top_logic.layout.basic.AbstractControlBase$ScopedRenderer.write(AbstractControlBase.java:1042) at com.top_logic.layout.basic.AbstractControlBase$ScopedRenderer.write(AbstractControlBase.java:1) at com.top_logic.layout.basic.AbstractDisplayContext.renderScoped(AbstractDisplayContext.java:118) at com.top_logic.layout.basic.AbstractControlBase.write(AbstractControlBase.java:726)
Test
- Create two model classes: "A" and "B".
- In A create a composition relation "bs" ("A has Bs").
- In B, create a "timestamp" attribute of type "date with time".
- Display a form for an instance of "A" in the layout.
- In this form, display the associated Bs as a composition table with the "Timestamp" column.
- Switch form to edit mode
- Expectation: The column "Timestamp" can be displayed in the edit mode of the form table.
or
TestDateTimeAttribute.script.xml