Steve On 28 Oct 2008, at 15:03, Erik van Oosten wrote:
The following extends Link to have a title model in the constructor. Its easyto do the same for an ExternalLink. public abstract class TitledLink extends Link { public TitledLink(String id, String title) { this(id, new Model<String>(title)); } public TitledLink(String id, IModel<String> titleModel) { super(id); add(new AttributeModifier("title", true, titleModel)); } } Steve Swinsburg-2 wrote:Hi all, I've just noticed a deficiency in the ExternalLink component that doesn't allow a 'title' field to be set in its constructor. This is abasic HTML attribute that all links should have (for accessibility andexpected behaviour).Currently this is only achieved by using AttributeAppender and settingthe title attribute onto the link component. I propose a new construcotr that takes the title attribute as a parameter (or the ExternalLink set a title by default). I have filed a Jira ticket here: https://issues.apache.org/jira/browse/WICKET-1878 cheers, Steve-- View this message in context: http://www.nabble.com/no-title-in-ExternalLink-tp20030239p20208934.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature