Hi

In your Application.init() add this line:
     getComponentInstantiationListeners().add(new LinkListener());

public class LinkListener implements IComponentInstantiationListener {

        @Override
        public void onInstantiation(Component component) {
                if (component instanceof Link) {
                        component.add(AttributeModifier.append("rel", 
"nofollow"));
                }
        }

}

Best regards,
Decebal



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-add-rel-nofollow-to-all-links-tp4653459p4653460.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to