Last active
December 31, 2015 17:29
-
-
Save cortix/8021057 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- Bootstrap core CSS --> | |
<link href=".../styles/bootstrap.css" rel="stylesheet"> | |
<!-- Custom styles for this template --> | |
<link href=".../styles/jumbotron.css" rel="stylesheet"> | |
<link href=".../styles/signin.css" rel="stylesheet"> | |
<script src=".../js/html5shiv.js"></script> | |
<script src=".../js/respond.min.js"></script> | |
</head> | |
<body> | |
... | |
... | |
<form><input wicket:id="birthday"></form> | |
... | |
... | |
<!-- Bootstrap core JavaScript | |
================================================== --> | |
<!-- Placed at the end of the document so the pages load faster --> | |
<script src="resource/js/jquery.js"></script> | |
<script src="resource/js/bootstrap.min.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//JAVA | |
form.add(new DateTextField("birthday", | |
new DateTextFieldConfig() | |
.autoClose(true) | |
.withView(DateTextFieldConfig.View.Decade) | |
.showTodayButton(true) | |
.withStartDate(new DateTime().withYear(1900))))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WicketApplication extends WebApplication { | |
... | |
protected void init() { | |
... | |
// best place to do this is in Application#init() | |
Bootstrap.install(Application.get(), new BootstrapSettings()); | |
... | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment