On 7/10/07, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> An editable grid is certainly possible in wicket. I've build one of
> those monsters in our application. Unfortunately for you it has grown
> so much to be able to do everything you ever wanted and everything you
> never even knew you wanted that it is completely useless as an
> example. I can however give you some tips.
> - Do not use textfields or dropdowns in every cell, especially with
> larger grids this is going to hurt you performance wise (ie more than
> firefox but still)
> -instead use one moving textfield (or a dropdown for each different
> type you need)
> -use spans to create editable labels (showing the textfield or other
> editor on click)
> -if you are going to use ajax, send multiple changes each time using
> the time delay
> -if you use something of a form submit you will need to collect the
> changes in a custom way since you don't have textfields.
> -get ready for some serious javascripting (i have some javascript to
> navigate a table in javascript you should be able to reuse).
> -make good use of the component structure of wicket building on cells,
> rows and tables (off course you need to build these yourself).
> -really think your underlying datamodel through, we are using 1 custom
> model to dispatch models for each cell. but i'm not sure this is
> ideal.
> -inline attribute changes on your cells by overriding the
> oncomponenttag to minimize your footprint.
> -Keep it simple

LOL. I gotta say Maurice, your explanation sounds really simple ;)

Eelco

-------------------------------------------------------------------------
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