On Mon, Nov 11, 2013 at 12:41 PM, <[email protected]> wrote:
> Hello,
>
> I was already trying this. But it didn't works. Here is HTML:
> <a wicket:id="faultLink">ESB Fehler</a> | <a
> wicket:id="protokollierungLink">Protokollierung</a> | <a
> wicket:id="userManagementLink">Benutzerverwaltung</a> | <a
> wicket:id="changePasswordLink">Passwort ändern</a>
>
> And here the Java:
> Link faultLink = new Link("faultLink") {
> @Override
> public void onClick() {
> setResponsePage(Fault.class);
>
If this is all your Java code then you better use BookmarkablePageLink. It
is more optimal solution for this.
> }
> };
> faultLink.setAutoEnable(true);
>
> These links are in my parent page. The FaultPage extends of my parent
> page. Could that be the problem?
>
> Mit freundlichen Grüßen
> Christoph Manig
> Systems Engineer
>
> T-Systems International GmbH
> Systems Integration - SC Travel, Transport & Logistics
> Hoyerswerdaer Str. 18
> 01099 Dresden
> tel.: +49 (0) 351 / 8152 - 188
> fax: +49 (0) 351 / 8152 – 209
> email: [email protected]
>
> -----Ursprüngliche Nachricht-----
> Von: Martin Grigorov [mailto:[email protected]]
> Gesendet: Montag, 11. November 2013 11:32
> An: [email protected]
> Betreff: Re: Link
>
> Hi,
>
> See org.apache.wicket.markup.html.link.Link#setAutoEnable(true).
> This will automatically render "disabled" link for links which link to the
> current page.
>
>
> On Mon, Nov 11, 2013 at 12:23 PM, <[email protected]> wrote:
>
> > Hello,
> >
> > there are 4 links at the top of my page.
> > 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
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
>