enhancement
major
minor
defect
minor
#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
The "Suggested Values" annotation can be used to narrow down the selection set (previously limited to reference attributes). Reference attributes are always displayed as a selection. However, the "Suggested Values" annotation is also available for numeric and string attributes, though it has no effect in those cases.
Improvement
If the "Value Suggestions" annotation is set on a numeric or string attribute, it is displayed not as an input field but as a drop-down list offering a selection from the values defined by the annotation.
Code Migration
- The factory interface for displaying an attribute is no longer called “FormTagProvider,” but rather tl:DisplayProvider, with a correspondingly modified 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 the style attribute.
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 enum com.top_logic.layout.structure.OrientationAware.Orientation.
<form:choice name="myField" orientation="<%=Orientation.HORIZONTAL %>" />
Test
- /com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/model/attribute/TestOptionProviderForPrimitiveTypes.script.xml
- View in tl-demo: Technical Demo : Components : Selection Options