Closed ghost closed 13 years ago
When using tagselect with an object without a value encoder, the box appears with the object string rather than the specified label from the selectModelFactory.
selectModelFactory.create(new ArrayList(hashset), "Label");
When using a value encoder, the label appears as the object ID.
Example of my value encoder.
public ValueEncoder<ApplicationUser> getEncoder() { return new ValueEncoder<ApplicationUser>() { public String toClient(ApplicationUser value) { return value.getId().toString(); } public ApplicationUser toValue(String clientValue) { return (ApplicationUser) session.get(ApplicationUser.class, clientValue); } }; }
I think this is solved by the above commit.
When using tagselect with an object without a value encoder, the box appears with the object string rather than the specified label from the selectModelFactory.
selectModelFactory.create(new ArrayList(hashset), "Label");
When using a value encoder, the label appears as the object ID.
Example of my value encoder.