-Igor
On 3/21/06, Steve Knight <[EMAIL PROTECTED]> wrote:
Well, I tried it and it seems to work fine. I get the expected results. I'm just not sure if there is a performance or other reason not to do it as I am not sure how the value is used by DataView.
The database query doesn't always retrieve the same results as there is a filter applied to it, so I don't think caching will work.
SteveOn 3/21/06, Justin Lee <[EMAIL PROTECTED]> wrote:-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
IIRC, that will display Integer.MAX_VALUE on the page which is probably
not what you want. You might look into caching that value.
Steve Knight wrote:
> If my SortableDataProvider implementation will always return the max
> number of results (I'm not using paging), is it safe to have the size()
> method simply return Integer.MAX_VALUE instead of performing a database
> query to count the actual results?
>
> Steve
- --
Justin Lee
http://www.antwerkz.com
AIM : evan chooly
720.299.0101
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
iD8DBQFEIBGyJnQfEGuJ90MRA3YXAJ9LrXkc74ZWRXyZvMxYuN9FBafl7ACeNNxz
zHnAebjt0Eu3bnn9JPIJAZs=
=Jilb
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user