Skip to content

Instantly share code, notes, and snippets.

@cortix
Last active December 31, 2015 17:29
Show Gist options
  • Save cortix/8021057 to your computer and use it in GitHub Desktop.
Save cortix/8021057 to your computer and use it in GitHub Desktop.
<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>
//JAVA
form.add(new DateTextField("birthday",
new DateTextFieldConfig()
.autoClose(true)
.withView(DateTextFieldConfig.View.Decade)
.showTodayButton(true)
.withStartDate(new DateTime().withYear(1900)))));
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