Ok, I see. The JS library works with lower case formats.
Fixed with r4575.

Additionally I think you are using the old jquery. The one I fixed is at
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent/jquery/src/main/java/org/wicketstuff/jquery/datepicker


El mar, 17-02-2009 a las 11:21 +0000, Dipu escribió:
> if i supply the date pattern "dd/MM/yyyy"
> the date picker will print wrong date like 10/MM/2009
> 
>  i noticed sdf.toPattern().toLowerCase() and i thought some one missed
> to call toLowerCase()  on
> format_ = ((ITextFormatProvider) component).getTextFormat();
> 
> i called toLowerCase()  and it solved the issue, i didn't dig deep into it.
> 
> regards
> dipu
> 
> On Tue, Feb 17, 2009 at 10:57 AM, Martin Grigorov <mcgreg...@e-card.bg> wrote:
> > I could do it but why it should be lower cased ?
> > What will happen with months (MM)? They will become minutes (mm). Is
> > this correct ?
> >
> > I see there is sdf.toPattern().toLowerCase() below but this seems like a
> > bug to me.
> >
> > Can you give more details because I'm not using this behavior.
> >
> > El lun, 16-02-2009 a las 10:00 +0000, Dipu escribió:
> >> In Wicket Stuff - Jquery - DatePicker - DatePickerBehavior
> >>
> >> the following line in the onBind() method
> >>
> >>  if (component instanceof ITextFormatProvider) {
> >>               format_ = ((ITextFormatProvider) component).getTextFormat();
> >>
> >> should be
> >>
> >>  if (component instanceof ITextFormatProvider) {
> >>               format_ = ((ITextFormatProvider)
> >> component).getTextFormat().toLowerCase();
> >>
> >>
> >> i have created a patch, can some one apply the patch please.
> >>
> >>
> >> regards
> >> dipu
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
> 
> ---------------------------------------------------------------------
> 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

Reply via email to