Re: Re: Re: jdbc

2010-02-16 Thread Ivan Dudko
Thank you all guys! I just do it with Map. Especially thanks to Leo.Erlandsson! 2010/2/15 leo.erlands...@tyringe.com: Should be no different when using JDBC than using it when using Domain Objects. Check out Wicket Phonebook Example that uses FilterToolbar:

Re: jdbc

2010-02-16 Thread Hauke Ingmar Schmidt
Hej, 2010/2/11 Giambalvo, Christian christian.giamba...@excelsisnet.com: http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html Unrelated to the original posters question, but: The sort method used in this sample does not work correctly. It gets a sublist and sorts the sublist

Re: jdbc

2010-02-16 Thread Hauke Ingmar Schmidt
Hej, 2010/2/16 Hauke Ingmar Schmidt haukeing...@gmail.com: 2010/2/11 Giambalvo, Christian christian.giamba...@excelsisnet.com: http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html Unrelated to the original posters question, but: The sort method used in this sample does not

Re: Re: jdbc

2010-02-15 Thread Leo . Erlandsson
now problem is not accessing object fields.. problem is transform resultset to these objects.. You could just work with Maps in Wicket instead of Domain Objects. The transformation from ResultSet to a Map containing the Column name as Key and the data as Value should be trivial (if not; reply

Re: jdbc

2010-02-15 Thread Ilja Pavkovic
. Februar 2010 15:47 An: users@wicket.apache.org Betreff: Re: jdbc I already have method that return my data from db as arraylist. And i use this in iterator() method of dataprovider. But which object (i think model) i must return? 2010/2/11 James Carman jcar...@carmanconsulting.com

Re: jdbc

2010-02-15 Thread Ivan Dudko
...@gmail.com] Gesendet: Donnerstag, 11. Februar 2010 15:47 An: users@wicket.apache.org Betreff: Re: jdbc I already have method that return my data from db as arraylist. And i use this in iterator() method of dataprovider. But which object (i think model) i must return? 2010/2/11 James

Re: jdbc

2010-02-15 Thread Ilja Pavkovic
- Von: Ivan Dudko [mailto:ivan.du...@gmail.com] Gesendet: Donnerstag, 11. Februar 2010 15:47 An: users@wicket.apache.org Betreff: Re: jdbc I already have method that return my data from db as arraylist. And i use this in iterator() method of dataprovider. But which

Re: Re: jdbc

2010-02-15 Thread Leo . Erlandsson
If you want to use a Map and display it in a Datatable there's no difference from using an Object in Wicket. You access the key/values using PropertyColumn as usual (i.e. you don't really need to make any changes to your code). For Objects you use e. g. name for the getName() method. When

Re: Re: jdbc

2010-02-15 Thread Ivan Dudko
Thank you! I just discovered this sample: http://www.brettdutton.com/blog/?p=4 What i can do.. if i want to use FilterToolbar with DataTable? 2010/2/15 leo.erlands...@tyringe.com: If you want to use a Map and display it in a Datatable there's no difference from using an Object in Wicket.

Re: jdbc

2010-02-15 Thread James Carman
...@gmail.com] Gesendet: Donnerstag, 11. Februar 2010 15:47 An: users@wicket.apache.org Betreff: Re: jdbc I already have method that return my data from db as arraylist. And i use this in iterator() method of dataprovider. But which object (i think model) i must return? 2010/2/11 James Carman jcar

Re: Re: Re: jdbc

2010-02-15 Thread Leo . Erlandsson
Should be no different when using JDBC than using it when using Domain Objects. Check out Wicket Phonebook Example that uses FilterToolbar: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook Source Code Example:

Re: jdbc

2010-02-12 Thread Ivan Dudko
. Februar 2010 15:47 An: users@wicket.apache.org Betreff: Re: jdbc I already have method that return my data from db as arraylist. And i use this in iterator() method of dataprovider. But which object (i think model) i must return? 2010/2/11 James Carman jcar...@carmanconsulting.com: You

Re: jdbc

2010-02-12 Thread James Carman
2010 15:47 An: users@wicket.apache.org Betreff: Re: jdbc I already have method that return my data from db as arraylist. And i use this in iterator() method of dataprovider. But which object (i think model) i must return? 2010/2/11 James Carman jcar...@carmanconsulting.com: You need to create

Re: jdbc

2010-02-11 Thread James Carman
You need to create a provider for your data. Look at what the constructor takes and then implement the interface. On Thu, Feb 11, 2010 at 8:26 AM, Ivan Dudko ivan.du...@gmail.com wrote: Hello! I can't understand how to populate data from a resultset object into datatable. Anyone have an

Re: jdbc

2010-02-11 Thread Ivan Dudko
I already have method that return my data from db as arraylist. And i use this in iterator() method of dataprovider. But which object (i think model) i must return? 2010/2/11 James Carman jcar...@carmanconsulting.com: You need to create a provider for your data.  Look at what the constructor

Re: jdbc

2010-02-11 Thread James Carman
, Christian christian.giamba...@excelsisnet.com wrote: http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html -Ursprüngliche Nachricht- Von: Ivan Dudko [mailto:ivan.du...@gmail.com] Gesendet: Donnerstag, 11. Februar 2010 15:47 An: users@wicket.apache.org Betreff: Re: jdbc

Re: jdbc

2010-02-11 Thread Ivan Dudko
: Re: jdbc I already have method that return my data from db as arraylist. And i use this in iterator() method of dataprovider. But which object (i think model) i must return? 2010/2/11 James Carman jcar...@carmanconsulting.com: You need to create a provider for your data.  Look at what

Re: jdbc

2010-02-11 Thread James Carman
: http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html -Ursprüngliche Nachricht- Von: Ivan Dudko [mailto:ivan.du...@gmail.com] Gesendet: Donnerstag, 11. Februar 2010 15:47 An: users@wicket.apache.org Betreff: Re: jdbc I already have method that return my data from db

Re: JDBC Connection for CRUD operations

2008-02-29 Thread lars vonk
What driver did you specify? On Fri, Feb 29, 2008 at 1:17 PM, wicketUser [EMAIL PROTECTED] wrote: Hi, I am new to Wicket and I don't wish to use hibernate as persistence framework. I am trying to do CRUD operations through JDBC connection to a mysql database. I have added mysql

Re: JDBC Connection for CRUD operations

2008-02-29 Thread Nino Saturnino Martinez Vazquez Wael
you need to have which ever driver you specified on classpath.. wicketUser wrote: Hi, I am new to Wicket and I don't wish to use hibernate as persistence framework. I am trying to do CRUD operations through JDBC connection to a mysql database. I have added mysql dependency in my project's

Re: JDBC Connection for CRUD operations

2008-02-29 Thread James Carman
Just having the driver specified on the classpath doesn't register it. You have to do a Class.forName(drivernamehere) to register it with the DriverManager. I'd do that as a ServletContextListener or something. On 2/29/08, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: you need