Hey,
For a simple solution just overwrite onComponentTag().
But I think there a already complete components addressing this issue.
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
if (getPage().getPageClass() == Fault.class) {
// inline style
tag.put("style", "color: red;");
// css class
tag.put("class", "active");
}
}
Cheers,
Christian
Von: [email protected] [mailto:[email protected]]
Gesendet: Montag, 11. November 2013 11:23
An: [email protected]
Betreff: Link
Hello,
there are 4 links at the top of my page.
[cid:eda0a64b-ce32-4c04-b1b1-cc10df635636]
Every link should forward to another page. But the User couldn't see on which
page he is. I want to change the color of the links depending on the page which
the user has chosen. How can I realize this? I implemented the links like this:
Link faultLink = new Link("faultLink") {
@Override
public void onClick() {
setResponsePage(Fault.class);
}
};
Christoph