Re: modify Date in model from 3 inputs?

2012-06-30 Thread Sven Meier

How about this one:

http://www.rowellbelen.com/content/another-custom-wicket-component-datedropdownfield

It uses DropDownChoices but TextFields should be similar.

Hope this help
Sven

On 06/30/2012 04:27 PM, Dan12321 wrote:

Hi,
I look at TimeField. But there is only override one method (convertInput).

So, I try it, but it do not help.

How can I display in TextField only day? And When I change this number how
to change day in Date?
How to create model and how to create TextField?

Can you help me. Or is there any example of similar problem?
Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modify-Date-in-model-from-3-inputs-tp4650220p4650305.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: modify Date in model from 3 inputs?

2012-06-30 Thread Dan12321
Hi,
I look at TimeField. But there is only override one method (convertInput).

So, I try it, but it do not help.

How can I display in TextField only day? And When I change this number how
to change day in Date?
How to create model and how to create TextField?

Can you help me. Or is there any example of similar problem?
Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modify-Date-in-model-from-3-inputs-tp4650220p4650305.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: modify Date in model from 3 inputs?

2012-06-25 Thread Sven Meier

See org.apache.wicket.extensions.yui.calendar.TimeField for inspiration.

Sven

On 06/25/2012 06:47 PM, Dan12321 wrote:

Hi,

I have got 3 html elements: day, month, year.


In model class I have got attribute "java.util.Date sameDate;". This date
should be created from elements day, month, year.

I would like to ask, if there is possible: when I change input or select, I
want to change Date in model. Is it possible?
Thanks.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modify-Date-in-model-from-3-inputs-tp4650220.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: modify Date in model from 3 inputs?

2012-06-25 Thread Richard W. Adams
It is possible, and very common. In fact, if you set up your model 
correctly, you don't have to change it at all. Wicket does it for you.




From:   Dan12321 
To: users@wicket.apache.org
Date:   06/25/2012 11:47 AM
Subject:    modify Date in model from 3 inputs?



Hi,

I have got 3 html elements: day, month, year.


In model class I have got attribute "java.util.Date sameDate;". This date
should be created from elements day, month, year.

I would like to ask, if there is possible: when I change input or select, 
I
want to change Date in model. Is it possible?
Thanks.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modify-Date-in-model-from-3-inputs-tp4650220.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.
**


modify Date in model from 3 inputs?

2012-06-25 Thread Dan12321
Hi,

I have got 3 html elements: day, month, year.


In model class I have got attribute "java.util.Date sameDate;". This date
should be created from elements day, month, year.

I would like to ask, if there is possible: when I change input or select, I
want to change Date in model. Is it possible?
Thanks.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modify-Date-in-model-from-3-inputs-tp4650220.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