Problem with Kendo DateTimePicker Localization

384 views
Skip to first unread message

Oliver Becherer

unread,
Jun 7, 2013, 3:42:04 AM6/7/13
to wicket-j...@googlegroups.com

hi guys,

i'm running into problems trying to localize the Kendo DateTimePickers : i tried to reproduce simple localization using patterns as shown on http://www.7thweb.net/wicket-jquery-ui/kendo/datetimepicker/PatternDateTimePickerPage, but something in my setup/code seems to be buggy.

-> using the example 1:1 and following instructions from https://github.com/sebfz1/wicket-jquery-ui causes the following problem : configured pattern is shown only on first loading of the page, as soon as i change either date or time the DatePicker (or TimePicker) seems to fallback to the default pattern...

Snippet HTML: 

<form wicket:id="form" >

 <div wicket:id="kendo" />

 

</form>


Snippet Code : 

Form form = new Form<Void>("form");

add(form);


Calendar calendar = Calendar.getInstance();

calendar.set(2012, 05, 27, 02, 00, 00);


final IModel<Date> model = Model.of(calendar.getTime());


final DateTimePicker picker = new DateTimePicker("kendo", model, "dd.MMM.yy", "HH:mm:ss");

form.add(picker);




i tested this on 

*Wicket 1.5.7
*JQueryUI 1.3.0
*jquery-ui-kendo 1.3.0

and also with

*Wicket 6.7.0
*JQueryUI 6.8.1
*jquery-ui-kendo 6.8.1

In both combinations same effect : as soon as i use date/timepicker, component switches back to default pattern, ignoring submitted pattern.


Any help on this issue would be highly appreciated - thanks in advance for your help!






 

Sebastien

unread,
Jun 7, 2013, 4:30:14 AM6/7/13
to wicket-j...@googlegroups.com
Hi Oliver,

The only reason I would see for now is that you may have overridden #onConfigure(JQueryBehavior behavior) without having call super.onConfigure(behavior)...
Could you double check and confirm (on wicket-kendo-ui 6.8.1)?

Thanks & best regards,
Sebastien.

Oliver Becherer

unread,
Jun 7, 2013, 4:54:26 AM6/7/13
to wicket-j...@googlegroups.com
Hi Sebastian,

thanks for getting back to me - i built a really small test application to isolate the behavior. My test is really simple without additional functionality - here's the complete bean  :

public class HomePage extends WebPage {

private static final long serialVersionUID = 1L;


public HomePage(final PageParameters parameters) {


Form form = new Form<Void>("form");


add(form);


Calendar calendar = Calendar.getInstance();

calendar.set(2012, 05, 27, 02, 00, 00);


final IModel<Date> model = Model.of(calendar.getTime());


final DateTimePicker picker = new DateTimePicker("kendo", model, "dd.MMM.yy", "HH:mm:ss");

form.add(picker);


Button button = new Button("submit") {


@Override

public void onSubmit() {

System.out.println(model.getObject().getTime());

}


};

form.add(button);

}

}



would it help to attach my zipped test project including kendo css files ?

thank you very much for your support  - your stuff is highly appreciated as well as your help!


kind regards

O

Sebastien

unread,
Jun 7, 2013, 4:59:13 AM6/7/13
to wicket-j...@googlegroups.com
Hi Oliver,

You are welcome.
Yes, as I don't know how to reproduce the issue, I would be helpful that you attach the small project here...

Thanks in advance,
Sebastien.

Oliver Becherer

unread,
Jun 7, 2013, 6:47:42 AM6/7/13
to wicket-j...@googlegroups.com
hi sebastian,

problem's solved - please excuse the inconvenience.

rechecking the project's pom before uploading i noticed, i still had an old depdendency to jquery-ui-kendo artifact in my pom instead of wicket-kendo-ui.

thanks for your support anyway!

kind regards

O

Sebastien

unread,
Jun 7, 2013, 8:22:55 AM6/7/13
to wicket-j...@googlegroups.com
Hi Oliver,
No problem, thanks to have let me know you solved the issue! :)

Best regards,
Sebastien.

Reply all
Reply to author
Forward
0 new messages