Re: jdbc

2010-02-16 Thread Hauke Ingmar Schmidt
Hej, 2010/2/16 Hauke Ingmar Schmidt : > 2010/2/11 Giambalvo, Christian : >> 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 su

Re: jdbc

2010-02-16 Thread Hauke Ingmar Schmidt
Hej, 2010/2/11 Giambalvo, Christian : > 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 instead of sorting the base data and

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 : > 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/w

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: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trun

Re: jdbc

2010-02-15 Thread James Carman
a >>>>>> Hibernate-based example and come up with the JDBC analog.  Here's an >>>>>> example from my Advanced Wicket talk I gave a while back: >>>>>> >>>>>> http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/co

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

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 us

Re: jdbc

2010-02-15 Thread Ilja Pavkovic
esults out of a JDBC result set. This is based on a static, > >> >>>>> in-memory list of Contact objects. What I would recommend is to > >> >>>>> look at a Hibernate-based example and come up with the JDBC > >> >>>>> analog. Here's an exa

Re: jdbc

2010-02-15 Thread Ivan Dudko
>>>>> example from my Advanced Wicket talk I gave a while back: >> >>>>> >> >>>>> http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main >> >>>>> /java/com/carmanconsulting/wicket/advanced/web/story3/page/Home.java &

Re: jdbc

2010-02-15 Thread Ilja Pavkovic
og. Here's an > >>>>> example from my Advanced Wicket talk I gave a while back: > >>>>> > >>>>> http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main > >>>>> /java/com/carmanconsulting/wicket/advanced/we

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 Ivan Dudko
gt;>>>> example from my Advanced Wicket talk I gave a while back: >>>>> >>>>> http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story3/page/Home.java >>>>> >>>>> At the

Re: jdbc

2010-02-12 Thread James Carman
ository" >>>> to get its data. >>>> >>>> >>>> >>>> On Thu, Feb 11, 2010 at 10:11 AM, Giambalvo, Christian >>>> wrote: >>>>> http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html >>>

Re: jdbc

2010-02-12 Thread Ivan Dudko
t;>>> 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: user

Re: jdbc

2010-02-11 Thread James Carman
> >> >> On Thu, Feb 11, 2010 at 10:11 AM, Giambalvo, Christian >> wrote: >>> http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html >>> >>> -Ursprüngliche Nachricht- >>> Von: Ivan Dudko [mailto:ivan.du...@gmail.com] &

Re: jdbc

2010-02-11 Thread Ivan Dudko
ta. > > > > On Thu, Feb 11, 2010 at 10:11 AM, Giambalvo, Christian > wrote: >> http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html >> >> -Ursprüngliche Nachricht- >> Von: Ivan Dudko [mailto:ivan.du...@gmail.com] >> Gesendet: Donners

Re: jdbc

2010-02-11 Thread James Carman
10 at 10:11 AM, Giambalvo, Christian 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 &g

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 : > You need to create a "provider" for your data.  Look at what the > constructor takes and then implement th

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 wrote: > Hello! > > I can't understand how to populate data from a resultset object into > datatable. > Anyone have an example? > > Tha

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 n

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

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 my