You want to give a different CSS for links in different pages?
public class ClassModifier extends AttributeModifier {
/**
* @param attribute
* @param replaceModel
*/
public ClassModifier(IModel<?> replaceModel) {
super("class", replaceModel);
}
/**
* @param attribute
* @param value
*/
public ClassModifier(Serializable value) {
super("class", value);
}
}
and
faultLink.add(new ClassModifier(this.getClass().getSimpleName()) )
?
On Mon, Nov 11, 2013 at 12:50 PM, <[email protected]> wrote:
> I mean an example for the CSS Solution
>
>
> 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 12:41
> An: [email protected]
> Betreff: Re: Link
>
> BookmarkablePageLink faultLink = new BookmarkablePageLink("faultLink",
> Fault.class); faultLink.setAutoEnable(true);
>
>
> On Mon, Nov 11, 2013 at 1:37 PM, <[email protected]> wrote:
>
> > Can you give an example?
> >
> >
> > 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: Ernesto Reinaldo Barreiro [mailto:[email protected]]
> > Gesendet: Montag, 11. November 2013 11:34
> > An: [email protected]
> > Betreff: Re: Link
> >
> > Maybe use CSS? Add a class attribute with the "name" of the page?
> >
> >
> > On Mon, Nov 11, 2013 at 11:23 AM, <[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]
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
--
Regards - Ernesto Reinaldo Barreiro