Re: DatePicker to pick a year

2010-12-10 Thread Nivedan Nadaraj
in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-to-pick-a-year-tp3063856p3077604.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: DatePicker to pick a year

2010-12-10 Thread Nivedan Nadaraj
it was @Temporal(TemporalType.TIMESTAMP) It will fail validation based on the format. Hope that helps Cheers -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-to-pick-a-year-tp3063856p3077604.html Sent from the Users forum mailing list archive

Re: DatePicker to pick a year

2010-12-10 Thread Anna Simbirtsev
.nabble.com/DatePicker-to-pick-a-year-tp3063856p3077604.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

Re: DatePicker to pick a year

2010-12-08 Thread Anna Simbirtsev
(TemporalType.TIMESTAMP) It will fail validation based on the format. Hope that helps Cheers -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-to-pick-a-year-tp3063856p3077604.html Sent from the Users forum mailing list archive at Nabble.com

Re: DatePicker to pick a year

2010-12-07 Thread Anna Simbirtsev
Hi, I am using the wiQuery for the calendar now, but have some problems. 1) The page refreshes when I click in the field, then the datepicker appeares. 2) When I try to submit, it gives me an error: '1980-12-04' is not a valid Date. DatePickerDate datefield = new DatePickerDate(datefield,

Re: DatePicker to pick a year

2010-12-07 Thread julien roche AKA indiana_jules
Hi Anna, I think you have to set the right converter on your wicket textfield (with the override of the method getConverter and with the class PatternDateConvert). The dateFormat option works only on the client side with jQuery. Regards Julien Roche On Tue, Dec 7, 2010 at 7:56 PM, Anna

Re: DatePicker to pick a year

2010-12-07 Thread nivs
this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-to-pick-a-year-tp3063856p3077604.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: DatePicker to pick a year

2010-11-30 Thread Anna Simbirtsev
Hi, I am trying to use JQuery calendar instead, because I like that it has month and year dropdowns. I added js, css and images files. Added this to the head: $(document).ready(function() { $(#mydatepicker).datepicker(); $( #mydatepicker ).datepicker({ changeMonth: true, changeYear:

Re: DatePicker to pick a year

2010-11-30 Thread Luca Provenzani
Hi, it's better if you set the id of the input in the java code. Something like: yourinput.setOutpuMarkUpId(true); yourinput.setMarkUpId(mydatepicker); //i' don't remember exactly the name of the function, but it's something similar bye Luca Il 30/11/2010 16:40, Anna Simbirtsev ha scritto: Hi,

Re: DatePicker to pick a year

2010-11-30 Thread Alexander Monakhov
Hi. Why don't you use wiQuery? BTW, it's not a good idea to set markup id, because you're not sure whether it's unique across entire page. Let it be set by framework. If you don't want to use wiQuery, use header contribution to inject jquery related code from java code to page. In this case you

DatePicker to pick a year

2010-11-29 Thread Anna Simbirtsev
Hi, Is it possible to get datapicker to switch between year, currently there are arrows to only switch between month? Thanks, Anna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: DatePicker to pick a year

2010-11-29 Thread Marco Mancini
try this code: DatePicker mydp= new DatePicker(){ private static final long serialVersionUID = 1L; @Override protected boolean enableMonthYearSelection() { return true; } }; 2010/11/29 Anna

Re: DatePicker to pick a year

2010-11-29 Thread Anna Simbirtsev
It does not work, only can switch between month, not year. On Mon, Nov 29, 2010 at 11:33 AM, Marco Mancini marcoman...@gmail.com wrote: try this code: DatePicker mydp= new DatePicker(){                private static final long serialVersionUID = 1L;               �...@override              

Re: DatePicker to pick a year

2010-11-29 Thread Marco Mancini
in this page the problem is dateformat... but he can switch year https://issues.apache.org/jira/browse/WICKET-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12846200#action_12846200 try to click on month name for change year! 2010/11/29 Anna

Re: DatePicker to pick a year

2010-11-29 Thread Anna Simbirtsev
That works, thanks. I just wonder how users will be able to figure it out. On Mon, Nov 29, 2010 at 11:56 AM, Marco Mancini marcoman...@gmail.com wrote: in this page the problem is dateformat... but he can switch year