What is departmentSectionId? Do you not need to use .equals on that as well?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079489#4079489
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079489
Its a Long so I guess .equals would work but the method is failing on this
condition
if (!(object instanceof DepartmentSection)) return false;
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079586#4079586
Reply to the post :
What class is object? What's its hierachy?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079588#4079588
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079588
___
jboss-user
It has no hierarchy, just an entity class that implements Serializable
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079609#4079609
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079609
Ok in debugging further, it looks like object is null when the equals method is
called.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079614#4079614
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079614
Ok, it has something to do with department.departmentSectionList
I replaced the middle select box to use a crud entity query instead (I removed
the first box so the second is not filtered at all)
Strangely it works with the entity query
This DOES NOT WORK
h:selectOneMenu
Ok, I got it working. I was not outjecting the department or departmentSection
entities which was a problem.
I also had to rewrite the equals() method of DepartmentSection
public boolean equals(Object other) {
| if (other == null) {
| return false;
| }
| if (other
Ok it seems that my equals() method in DepartmentSection is failing which I am
sure is the problem
public boolean equals(Object object) {
|
| if (object == this) return true;
| if (!(object instanceof DepartmentSection)) return false;
|