add(new Label("navInternalHref", "[Non-bookmarkable href]"));
}
private void addExternalNavigationLinks() {
ExternalLink link = null;
final IModel<String> hrefModel = Model.of("http://wicketdemo.sourceforge.net/");
final IModel<String> labelModel = Model.of("WicketDemo");
link = new ExternalLink("navExternalLink", hrefModel, labelModel);
add(link);
// Note: the default model object of an external link is always a String
// (only IModel<String> parameters are accepted).
add(new Label("navExternalHref", link.getDefaultModelObjectAsString()));
link = new ExternalLink("navExternalLinkNoBodyOverride", "http://wicketdemo.sourceforge.net/");
add(link);
add(new Label("navExternalHrefNoBodyOverride", link.getDefaultModelObjectAsString()));
}