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
Just parse the date string into a Timestamp. That's Java, not Wicket. RAM /abr./: Rarely Adequate Memory. From: SudeepShakya shakyasud...@live.com To: users@wicket.apache.org Date: 03/26/2012 11:03 PM Subject:Re: 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:

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
Have you looked at the examples from the website? On Mar 26, 2012 7:20 AM, SudeepShakya shakyasud...@live.com wrote: 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

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