I'd do it like this:
h1 wicket:id=logo-h1
a wicket:id=logo-home.../a
/h1
add(new WebMarkupContainer(logo-h1) {
void onConfigure() {
super.onConfigure();
setRenderBodyOnly(!getPage().getClass().equals(Homepage.class));
}
}.add(new Link...));
In other words: only render the H1
Thanks for the answers, everyone!
On Sat, Nov 23, 2013 at 5:20 AM, Bas Gooren b...@iswd.nl wrote:
I'd do it like this:
h1 wicket:id=logo-h1
a wicket:id=logo-home.../a
/h1
add(new WebMarkupContainer(logo-h1) {
void onConfigure() {
super.onConfigure();
Maybe just using setEnabled(false) in the HomaPage?
On Fri, Nov 22, 2013 at 7:24 PM, Scott Carpenter scarpen...@gmail.comwrote:
Suppose you have a web site with a logo in the header which links to the
home page. On the home page itself, you have the same logo and the link,
but you also want
Suppose you have a web site with a logo in the header which links to the
home page. On the home page itself, you have the same logo and the link,
but you also want to wrap the logo with an H1 tag.
(Or maybe it's not that you have a burning desire to do this, but your
client has requested it.)
In
You can avoid code duplication in case you don't really need h1 tag, but it
is enough just to look like h1 tag ...
you can add css like:
h1, .myH1 {
font-size:24px;
}
and change markup to be
div wicket:id=homeLinkContainer
a wicket:id=homeLink title=Home href=#ABC, Inc./a
/div
you will set