This content has been marked as final.
Show 2 replies
-
1. Re: [Bug?] noSelectionLabel, <s:selectItems>, equals()
matt.drees Jul 26, 2007 12:08 AM (in response to fmars)If I remember right, the equals() method gets called by jsf - it has to make sure that the selected value is one of the options in s:selectItems, so it does a list.contains() call or something, which uses the equals() method. I think you should just fix your equals method so that if it's passed null, you return false.
-
2. Re: [Bug?] noSelectionLabel, <s:selectItems>, equals()
sammy8306 Jul 26, 2007 2:10 AM (in response to fmars)"matt.drees" wrote:
I think you should just fix your equals method so that if it's passed null, you return false.
Which is exactly what it should do according to the spec anyway: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object) (last bulletpoint)