Ok, that would be a tedious solution ;).

I think I would prefer an overrideable method in Select.

Sven

On 01/29/2013 04:04 PM, francois meillet wrote:
You can do that by using the decorator pattern : write a wrapper for the
object and redefine equals and hashcode.
François

On Tue, Jan 29, 2013 at 2:38 PM, Sven Meier <[email protected]> wrote:

Hi all,

I'm using Select/SelectOptions with model-objects that have a semantic
equality but their #equals() method is not overriden :/.

What is the recommended way to the have the correct option preselected,
given that I cannot add #equals() to the implementation?
Select#isSelected() has package access only, Select#compareModels() uses
#equals() on the model-object and is private currently.

Thanks
Sven

------------------------------**------------------------------**---------
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.org<[email protected]>
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to