the idea is the same

mypage extends webpage {
private int maxage; //getter+setter

mypage() {
form f=new form("f");
f.add(new textfield("maxage", new PropertyModel(this, "maxage")));

add(new dataview("list",new dp(),15) {...});
}

class dp extends sortabledataprovider {
int size() { return db.countwithmaxage(maxage); }
}

}

-igor


On 5/18/07, Ravindra Wankar <[EMAIL PROTECTED]> wrote:


I've seen a filter example where columns in a table were filterable. Can
someone point me to an example or tell me how to have a filter (with
columns not related to the table) and that uses a dataprovider  at the
backend?

EXAMPLE: we have a filter that is a drop-down with options describing
task statuses as "Started, Starting Today, Starting This Week...". There
is no corresponding column for that in the html table.

Thanks
Ravi

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to