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, > > 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: true }); > }); > > This is in the body: > > <input wicket:id="myid" name="extensions:0:extension:myid" type="text" > id="mydatepicker" value=""/> > > But it does not work, does anybody has any ideas? > > Thanks > > On Mon, Nov 29, 2010 at 1:07 PM, Anna Simbirtsev <asimbirt...@gmail.com> > wrote: >> 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 >>> https://issues.apache.org/jira/browse/WICKET-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846200#action_12846200 >>> >>> .... >>> >>> try to click on month name for change year! >>> >>> >>> >>> 2010/11/29 Anna Simbirtsev <asimbirt...@gmail.com> >>> >>>> 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 >>>>> protected boolean enableMonthYearSelection() { >>>>> return true; >>>>> } >>>>> }; >>>>> >>>>> 2010/11/29 Anna Simbirtsev <asimbirt...@gmail.com> >>>>> >>>>>> 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: users-h...@wicket.apache.org >>>>>> >>>>>> >>>> >>>> >>>> -- >>>> Anna Simbirtsev >>>> (416) 729-7331 >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >> >> >> -- >> Anna Simbirtsev >> (416) 729-7331 >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org