RE: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-27 Thread Wilhelmsen Tor Iver
I want to know how to input date into database using form. I am using Timestamp in mysql. The Wicket-related psrt of that question is that you use a TextFieldDate with a model, and you then get the model object value in onSubmit() and use normal SQL to insert or update. - Tor Iver

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-27 Thread Richard W. Adams
and displays the data from database(mysql) using simple jdbc I want to know how to input date into database using form. I am using Timestamp in mysql. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Creating-a-submit-form-which-takes-date-and-a-string-as-input

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-27 Thread SudeepShakya
I have used Date.valueOf(String). But submitting the form Null Pointer Exception is thrown. While submitting i have created an object of Application.java and the class with getter and setters. -- View this message in context:

Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread SudeepShakya
I am new to wicket and also to webframeworks. i am creating an app, which has a homepage and when a link is clicked, it should display a form which takes two dates and a string as input and retrieves data from database. Thanks in advance. I tried to learn from 'wicket in action' but the example

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread Andrea Del Bene
Hi, what exactly is your problem? What problems are you having so far? I am new to wicket and also to webframeworks. i am creating an app, which has a homepage and when a link is clicked, it should display a form which takes two dates and a string as input and retrieves data from database.

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread SudeepShakya
I have created a form which takes two dates/time and a textbox and created a class for get/set. And, it should work as : when i insert the data, it should check the data in the database and display the filtered data as specified by the inputs . Also i have created a jdbc connection and a method

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread James Carman
in the database and display the filtered data as specified by the inputs . Also i have created a jdbc connection and a method for retrieving data . I don't know how to create a textbox that takes date/time as input and it will be easy to the user to input. I have created following files which I

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread SudeepShakya
I have viewed some of the examples but not appropriate one. Can u give some hint -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Creating-a-submit-form-which-takes-date-and-a-string-as-input-and-displays-the-data-from-database-myc-tp4505124p4505882.html Sent from the

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread James Carman
http://www.wicket-library.com/wicket-examples/dates/ On Mon, Mar 26, 2012 at 9:55 AM, SudeepShakya shakyasud...@live.com wrote: I have viewed some of the examples but not appropriate one. Can u give some hint -- View this message in context:

Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread SudeepShakya
I want to know how to input date into database using form. I am using Timestamp in mysql. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Creating-a-submit-form-which-takes-date-and-a-string-as-input-and-displays-the-data-from-database-myc-tp4505124p4507896.html Sent

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: http://wicketstuff.org

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
and I'll provide sample code) using MetaData (this is how we do it in our JSP pages today). Or you could write / find a software that does the mapping from JDBC ResultSet to Domain Objects... But why not use an ORM such as Hibernate / Cayenne / iBatis then.. ?

Re: jdbc

2010-02-15 Thread Ilja Pavkovic
wrote: Thank you. I already do simple things with hibernate and spring ioc. Now i want to use plain old jdbc. I already get the datatable wich works with one pojo (table). Now i am in trouble.. how i can get table for two joined tables, for example? 2010/2/11 James Carman jcar

Re: jdbc

2010-02-15 Thread Ivan Dudko
, 2010 at 10:50 AM, Ivan Dudko ivan.du...@gmail.com wrote: Thank you. I already do simple things with hibernate and spring ioc. Now i want to use plain old jdbc. I already get the datatable wich works with one pojo (table). Now i am in trouble.. how i can get table for two joined tables

Re: jdbc

2010-02-15 Thread Ilja Pavkovic
:50 AM, Ivan Dudko ivan.du...@gmail.com wrote: Thank you. I already do simple things with hibernate and spring ioc. Now i want to use plain old jdbc. I already get the datatable wich works with one pojo (table). Now i am in trouble.. how i can get table for two joined tables

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
of some sort? On Thu, Feb 11, 2010 at 10:50 AM, Ivan Dudko ivan.du...@gmail.com wrote: Thank you. I already do simple things with hibernate and spring ioc. Now i want to use plain old jdbc. I already get the datatable wich works with one pojo (table). Now i am in trouble.. how i can get table

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

Re: jdbc

2010-02-12 Thread Ivan Dudko
, 2010 at 10:50 AM, Ivan Dudko ivan.du...@gmail.com wrote: Thank you. I already do simple things with hibernate and spring ioc. Now i want to use plain old jdbc. I already get the datatable wich works with one pojo (table). Now i am in trouble.. how i can get table for two joined tables

Re: jdbc

2010-02-12 Thread James Carman
AM, Ivan Dudko ivan.du...@gmail.com wrote: Thank you. I already do simple things with hibernate and spring ioc. Now i want to use plain old jdbc. I already get the datatable wich works with one pojo (table). Now i am in trouble.. how i can get table for two joined tables, for example? 2010/2

jdbc

2010-02-11 Thread Ivan Dudko
Hello! I can't understand how to populate data from a resultset object into datatable. Anyone have an example? Thank you! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

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

AW: jdbc

2010-02-11 Thread Giambalvo, Christian
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

2010-02-11 Thread James Carman
Yeah, but this doesn't give them an example of how to get the results 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 example from my Advanced

Re: jdbc

2010-02-11 Thread Ivan Dudko
Thank you. I already do simple things with hibernate and spring ioc. Now i want to use plain old jdbc. I already get the datatable wich works with one pojo (table). Now i am in trouble.. how i can get table for two joined tables, for example? 2010/2/11 James Carman jcar...@carmanconsulting.com

Re: jdbc

2010-02-11 Thread James Carman
and spring ioc. Now i want to use plain old jdbc. I already get the datatable wich works with one pojo (table). Now i am in trouble.. how i can get table for two joined tables, for example? 2010/2/11 James Carman jcar...@carmanconsulting.com: Yeah, but this doesn't give them an example of how to get

Re: wicket + jdbc template app

2009-11-23 Thread Ivan Dudko
Thank you! I have just implement it! I am using c3p0 and SQL DAO without Spring or any Persistent framework. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: wicket + jdbc template app

2009-11-19 Thread Ivan Dudko
Hello, guys! I am still could not implement wicket application without any persistence framework and also spring-jdbc. I want to use only connection pooling with dbcp or c3p0. May you provide example for this kind of app. Thank you for answer

Re: wicket + jdbc template app

2009-11-19 Thread James Carman
Are you saying you don't want to use Spring at all? But, you do want to use DBCP or C3P0? On Thu, Nov 19, 2009 at 7:46 AM, Ivan Dudko ivan.du...@gmail.com wrote: Hello, guys! I am still could not implement wicket application without any persistence framework and also spring-jdbc. I want

Re: wicket + jdbc template app

2009-11-19 Thread Clint Checketts
...@carmanconsulting.comwrote: Are you saying you don't want to use Spring at all? But, you do want to use DBCP or C3P0? On Thu, Nov 19, 2009 at 7:46 AM, Ivan Dudko ivan.du...@gmail.com wrote: Hello, guys! I am still could not implement wicket application without any persistence framework and also spring-jdbc

RE: wicket + jdbc template app

2009-11-19 Thread Loritsch, Berin C.
problems if you aren't careful. -Original Message- From: Clint Checketts [mailto:checke...@gmail.com] Sent: Thursday, November 19, 2009 8:35 AM To: users@wicket.apache.org Subject: Re: wicket + jdbc template app My Wicket app I maintain only uses the JdbcTemplate class from Spring. We don't

Re: wicket + jdbc template app

2009-11-19 Thread James Carman
ResultSets also have matching resources on your database server, so you can introduce scalability problems if you aren't careful. And this is why we use something like Spring's JDBC support to manage all of that for us (they've already thought of this stuff). -Original Message- From

Re: wicket + jdbc template app

2009-11-02 Thread Ivan Dudko
thank you guys!

wicket + jdbc template app

2009-11-01 Thread Ivan Dudko
Hello, guys! I want to use wicket with plain jdbc without any persistence framework. Where i can find template application for this type of data source? Thank you for answer!

Re: wicket + jdbc template app

2009-11-01 Thread James Carman
Do you want to use spring On Nov 1, 2009 10:12 AM, Ivan Dudko ivan.du...@gmail.com wrote: Hello, guys! I want to use wicket with plain jdbc without any persistence framework. Where i can find template application for this type of data source? Thank you for answer!

Re: wicket + jdbc template app

2009-11-01 Thread dtoffe
Just set up your connection in your Application subclass and provide a method to get it from wherever you need it. Use connection pooling. Daniel idudko wrote: Hello, guys! I want to use wicket with plain jdbc without any persistence framework. Where i can find template application

Re: wicket + jdbc template app

2009-11-01 Thread Pedro Santos
Application subclass and provide a method to get it from wherever you need it. Use connection pooling. Daniel idudko wrote: Hello, guys! I want to use wicket with plain jdbc without any persistence framework. Where i can find template application for this type of data source? Thank you

Re: Starting with Wicket, Spring, Maven and JDBC

2009-09-24 Thread Pedro Sena
I'll check them Thanks Eric, On Wed, Sep 23, 2009 at 8:08 PM, Erik Post eriksen...@gmail.com wrote: Well, besides iolite, you could take a look at wicket-phonebook and wicketopia. They're not JDBC but they both come with Spring preconfigured. The phonebook has a couple of example DAO's

Re: Starting with Wicket, Spring, Maven and JDBC

2009-09-24 Thread Muro Copenhagen
them Thanks Eric, On Wed, Sep 23, 2009 at 8:08 PM, Erik Post eriksen...@gmail.com wrote: Well, besides iolite, you could take a look at wicket-phonebook and wicketopia. They're not JDBC but they both come with Spring preconfigured. The phonebook has a couple of example DAO's and iBatis

Re: Starting with Wicket, Spring, Maven and JDBC

2009-09-24 Thread Pedro Sena
-phonebook and wicketopia. They're not JDBC but they both come with Spring preconfigured. The phonebook has a couple of example DAO's and iBatis (among others) set up. You could take those as a starting point and 'add' JDBC. Cheers, Erik On Wed, Sep 23, 2009 at 11:33 PM

Starting with Wicket, Spring, Maven and JDBC

2009-09-23 Thread Pedro Sena
Hi Guys, I'm new to Wicket with Spring(I never used Spring before, just Seam). I'm using lolite but it comes with JPA instead of JDBC. I would like to know if there is some archetype for the setup that I described in the title. I already checked wicket stuff if no luck. Thanks in advance

Re: Starting with Wicket, Spring, Maven and JDBC

2009-09-23 Thread Erik Post
Well, besides iolite, you could take a look at wicket-phonebook and wicketopia. They're not JDBC but they both come with Spring preconfigured. The phonebook has a couple of example DAO's and iBatis (among others) set up. You could take those as a starting point and 'add' JDBC. Cheers, Erik

JDBC Connection for CRUD operations

2008-02-29 Thread wicketUser
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.xml file dependency groupIdmysql/groupId

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