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


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



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 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-and-displays-the-data-from-database-myc-tp4505124p4507896.html

Sent from the Users forum mailing list archive at Nabble.com.

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




**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**


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: 
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-tp4505124p4508800.html
Sent from the Users forum mailing list archive at Nabble.com.

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



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.
Thanks in advance.
I tried to learn from 'wicket in action' but the example codes do not work
much wicket 1.4.

--
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-tp4505124p4505124.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



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 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 have attached. And also created html
files for form input and filtered display.

Thanx for response.
http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteCollection.java
VoteCollection.java 
http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteCollectionJDBC.java
VoteCollectionJDBC.java 
http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteDisplayPage.java
VoteDisplayPage.java 
http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteEditForm.java
VoteEditForm.java 
http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteEditPage.java
VoteEditPage.java 
http://apache-wicket.1842946.n4.nabble.com/file/n4505444/Votes.java
Votes.java 

--
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-tp4505124p4505444.html
Sent from the Users forum mailing list archive at Nabble.com.

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



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
 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 have attached. And also created html
 files for form input and filtered display.

 Thanx for response.

 http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteCollection.java
 VoteCollection.java

 http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteCollectionJDBC.java
 VoteCollectionJDBC.java

 http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteDisplayPage.java
 VoteDisplayPage.java
 http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteEditForm.java
 VoteEditForm.java
 http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteEditPage.java
 VoteEditPage.java
 http://apache-wicket.1842946.n4.nabble.com/file/n4505444/Votes.java
 Votes.java

 --
 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-tp4505124p4505444.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




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 Users forum mailing list archive at Nabble.com.

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



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: 
 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 Users forum mailing list archive at Nabble.com.

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


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



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 from the Users forum mailing list archive at Nabble.com.

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