Re: Howto go for editable grid with add/remove row in wicket 1.4?

2012-02-20 Thread Emmanouil Batsis (Manos)

On 02/20/2012 03:49 AM, Emmanouil Batsis (Manos) wrote:

On 02/19/2012 10:56 PM, Jorge Rodrigez wrote:

You just need to add/remove an item to your data source.
Next time you rerender the grid it will show/hide the added/removed


Any custom datasource examples out there? Essentially I'd like to bind
the grid to a POJO collection member.


That was easy:
final ListDataProvider listDataProvider = new 
ListDataProvider(pojo.getChildren());


final DataGrid grid = new DefaultDataGrid(foo, new 
DataProviderAdapter(listDataProvider), cols);


Manos

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Howto go for editable grid with add/remove row in wicket 1.4?

2012-02-19 Thread Emmanouil Batsis (Manos)
Subject says it all... currently using inmethod from wicketstuff but 
there is no add/remove row in the 1.4.x versions.


Manos


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Howto go for editable grid with add/remove row in wicket 1.4?

2012-02-19 Thread Jorge Rodrigez
You just need to add/remove an item to your data source.
Next time you rerender the grid it will show/hide the added/removed
item/row.

On Sun, Feb 19, 2012 at 6:46 PM, Emmanouil Batsis (Manos) ma...@abiss.grwrote:

 Subject says it all... currently using inmethod from wicketstuff but there
 is no add/remove row in the 1.4.x versions.

 Manos


 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Howto go for editable grid with add/remove row in wicket 1.4?

2012-02-19 Thread Emmanouil Batsis (Manos)

On 02/19/2012 10:56 PM, Jorge Rodrigez wrote:

You just need to add/remove an item to your data source.
Next time you rerender the grid it will show/hide the added/removed


Any custom datasource examples out there? Essentially I'd like to bind 
the grid to a POJO collection member.


Manos

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org