Enhancement
Major
Detail
Bugfix
Detail
#26484
In-app template for grid and tables: Function "Verifier for use as list item" does not get component model
#26885
Constraints on declarative forms with arguments from a container reference lead to errors for new elements
#26922
With generated subject classes, a default provider of an attribute in a non-structure class does not get a create context
Enhancement
Major
#26920
Suggested values for number and string attributes
The "Value suggestions" annotation can be used to restrict the selection set (previously of reference attributes). Reference attributes are always displayed as selections. However, the "Value Suggestions" annotation is also offered for number and string attributes, but has no effect there.
Improvement
If the "Value Suggestions" annotation is set on a number or character string attribute, it is not displayed as an input field but as a selection field offering a choice from the values defined via the annotation.
Code migration
- Factory interface for displaying an attribute is no longer called "FormTagProvider", but tl:DisplayProvider with correspondingly changed signature Control createDisplay(EditContext editContext, FormMember member).
- The width of a <form:select/> JSP tag can now be specified using the width attribute instead of style.
Instead of
<form:select name="<%=SearchFieldSupport.STORED_QUERY %>" style="width: 260px;"/>.
Now:
<form:select name="<%=SearchFieldSupport.STORED_QUERY %>" width="260px" />
- The orientation of a <form:choice/> JSP tag is now specified using the com.top_logic.layout.structure.OrientationAware.Orientation enum.
<form:choice name="myField" orientation="<%=Orientation.HORIZONTAL %>" />
Test
- /com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/model/attributes/TestOptionProviderForPrimitiveTypes.script.xml
- View in tl-demo: Technical Demo : Components : Selection Options