Re: filterform clear button not clearing everything?

2010-01-03 Thread Sam Zilverberg
After some more "digging" in the archives i found a similar post:
http://old.nabble.com/GoAndClearFiler-not-clearing-correctly-td22538944.html#a22727463

The problem has to do with how equals() is implemented for the entity.
My implementation of equals only matches the referenceId property to check
for equality.
So when filtering only for the property "name", the former entity and the
new one are considered equals
because they both have a null referenceId.

My solution is extending my entity to some filter-entity and overriding
equals.

Hope this helps anyone in the future


On Sun, Jan 3, 2010 at 11:09 AM, Sam Zilverberg wrote:

> I have a default data table/filterform/filter toolbar set up that displays
> info about some entity customer.
> the table has a couple of text filtered columns that display the entity's
> properties.
>
> for some reason the "clear" button clears some columns but not the others.
> it clears the column that reflects the property String referenceId but not
> the column that reflects the property String name.
>
> this is on wicket 1.4.3
> I've been trying to find the cause to this problem without any success for
> some time now.
> any ideas what could be the problem?
>


filterform clear button not clearing everything?

2010-01-03 Thread Sam Zilverberg
I have a default data table/filterform/filter toolbar set up that displays
info about some entity customer.
the table has a couple of text filtered columns that display the entity's
properties.

for some reason the "clear" button clears some columns but not the others.
it clears the column that reflects the property String referenceId but not
the column that reflects the property String name.

this is on wicket 1.4.3
I've been trying to find the cause to this problem without any success for
some time now.
any ideas what could be the problem?