Details
-
Type:
Feature Request
-
Status: Resolved (View Workflow)
-
Priority:
Critical
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 3.1.0.Beta5
-
Component/s: Transactions & Persistence, Validation & Conversion
-
Labels:None
-
Git Pull Request:
Description
Given
class Foo
{ Bar bar; // Getters and setters List<Bar> bars; // Getters and setters }<h:selectOneMenu value="#
{foo.bar}" >
<f:selectItems value="#
" var="bar" itemLabel="#
{bar.label}" itemValue="#
{bar}" />
<s:convertEntity /> || <s:convertObject />
</h:selectOneMenu>
I want to be able to have my setter/getter reference an object and not write the boilerplate for converting to/from a string.
I also want to reference a managed entity, and have that managed entity set back into the setter so I can see the changes updated in the database with no boilerplate, and avoid LIEs.
The UID you store should NOT be based on some list order solution, it needs to be based on an ID stored in a map because otherwise if the backing list order changes, the converter fails.