Re: [Wicket-user] Editable grid

2007-07-11 Thread Maurice Marrink
Actually we have gone completely Ajax for the grid, so i have no idea
what problems you are going to run into when using forms, especially
in combination with a moving editor. our grid was based on a listview
using wicket 1.2.6 but 1.3 might have better alternatives.

Maurice

On 7/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  I have recently started playing with wicket to see if we can use it to
  rewrite a legacy enterprise. I really like the simplicity of the
  architecture. A good chunk of our screens (35%) require editable grid.
  For example maintenance screens for small tables. I have seen bunch of
  examples in wicket on how to do grid views but just one example on how
  to make editable grid (Contacts editor - though it is not complete). I
  also found an example of an editable tree view and it is not complete
  either. Are there any examples out there that can help me get started?
  Any help would be greatly appreciated.

 You can. If you need to clone a spreadsheet (like I know Maurice did
 for his project) you might want to think about optimizations. For more
 simple cases, just remember that anything you nest in a form, no
 matter how deeply nested, will take part in form processing. You can
 probably best start with DefaultDataTable.

 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


-
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


[Wicket-user] Editable grid

2007-07-10 Thread Sanjay Gupta
I have recently started playing with wicket to see if we can use it to
rewrite a legacy enterprise. I really like the simplicity of the
architecture. A good chunk of our screens (35%) require editable grid.
For example maintenance screens for small tables. I have seen bunch of
examples in wicket on how to do grid views but just one example on how
to make editable grid (Contacts editor - though it is not complete). I
also found an example of an editable tree view and it is not complete
either. Are there any examples out there that can help me get started?
Any help would be greatly appreciated. 
Thanks
Sanjay

-
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


Re: [Wicket-user] Editable grid

2007-07-10 Thread Maurice Marrink
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

Maurice

On 7/10/07, Sanjay Gupta [EMAIL PROTECTED] wrote:
 I have recently started playing with wicket to see if we can use it to
 rewrite a legacy enterprise. I really like the simplicity of the
 architecture. A good chunk of our screens (35%) require editable grid.
 For example maintenance screens for small tables. I have seen bunch of
 examples in wicket on how to do grid views but just one example on how
 to make editable grid (Contacts editor - though it is not complete). I
 also found an example of an editable tree view and it is not complete
 either. Are there any examples out there that can help me get started?
 Any help would be greatly appreciated.
 Thanks
 Sanjay

 -
 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


Re: [Wicket-user] Editable grid

2007-07-10 Thread Eelco Hillenius
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


Re: [Wicket-user] Editable grid

2007-07-10 Thread Eelco Hillenius
 I have recently started playing with wicket to see if we can use it to
 rewrite a legacy enterprise. I really like the simplicity of the
 architecture. A good chunk of our screens (35%) require editable grid.
 For example maintenance screens for small tables. I have seen bunch of
 examples in wicket on how to do grid views but just one example on how
 to make editable grid (Contacts editor - though it is not complete). I
 also found an example of an editable tree view and it is not complete
 either. Are there any examples out there that can help me get started?
 Any help would be greatly appreciated.

You can. If you need to clone a spreadsheet (like I know Maurice did
for his project) you might want to think about optimizations. For more
simple cases, just remember that anything you nest in a form, no
matter how deeply nested, will take part in form processing. You can
probably best start with DefaultDataTable.

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