This content has been marked as final.
Show 1 reply
-
1. Re: rich:picklist bug (right pane doesnt populate as expected) (RF 4.2)
ealonso04 Oct 11, 2012 10:58 AM (in response to emmanueldufour)Hello emmanuel!
You have to override the hascode as well. This is an example of mine:
@Override
public int hashCode() {
return (this.id.hashCode() * this.label.hashCode() * this.value.hashCode());
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
else if (obj == null || obj.getClass() != this.getClass())
return false;
WorkListWrapper wList = (WorkListWrapper) obj;
return this.id == wList.getId() && this.label.equals(wList.getLabel()) && this.value.equals(wList.getValue());
}
My DTO has id, value and label attributes and is working just fine.
Regards!