new Code("language-java-code", Model.of("//JAVA\nadd(new DateTextField(\"language\",\n\t\t new DateTextFieldConfig()\n"
+ "\t\t\t.autoClose(true)\n"
+ "\t\t\t.withLanguage(\"es\")\n"
+ "\t\t\t.showTodayButton(true);")).setShowLineNumbers(true));
DatePickerModal modal = new DatePickerModal("modal");
modal.show(false);
modal.size(Modal.Size.Small);
modal.setUseKeyboard(true);
BootstrapButton modalButton = new BootstrapButton("modal-opener", Buttons.Type.Default);
modalButton.setLabel(Model.of("Open Modal Dialog"));
modal.addOpenerAttributesTo(modalButton);
add(modal, modalButton);
}