In v8.3p_2012-11-27/PowerEdition Deployment (built 2012-11-27)
TextItem's FormItemValueFormatter.formatValue() was called just once for the field
ds.xml
hibernate bean
I was formatting incoming array accordingly.
Now in v8.3p_2012-12-04/PowerEdition Deployment (built 2012-12-04)
formatValue is called multiple times for each member of an array.
Before
After
Is this a premanent change or a bug?
TextItem's FormItemValueFormatter.formatValue() was called just once for the field
ds.xml
Code:
<field name="roles">
Code:
@ManyToMany(targetEntity = Role.class, fetch = FetchType.LAZY) @JoinTable(name = "userrole", joinColumns = @JoinColumn(name = "UserID"), inverseJoinColumns = @JoinColumn(name = "URID")) public List<Role> getRoles() { return roles; } public void setRoles(List<Role> roles) { this.roles = roles; }
Now in v8.3p_2012-12-04/PowerEdition Deployment (built 2012-12-04)
formatValue is called multiple times for each member of an array.
Before
Code:
JSOHelper.convertToJava(value) = {java.util.ArrayList@9297} size = 14 [0] = {java.util.LinkedHashMap@9299} size = 4 [1] = {java.util.LinkedHashMap@9300} size = 4 [2] = {java.util.LinkedHashMap@9301} size = 4 ...
Code:
JSOHelper.convertToJava(value) = {java.util.LinkedHashMap@9234} size = 4 [0] = {java.util.LinkedHashMap$Entry@9237}"id" -> "3" [1] = {java.util.LinkedHashMap$Entry@9240}"desc" -> "Право на просмотр протокола операций" [2] = {java.util.LinkedHashMap$Entry@9243}"name" -> "R_OPERATIONS" [3] = {java.util.LinkedHashMap$Entry@9246}"group" -> size = 3
Comment