Jeremy - I understand your point, but the issue is more with HTML/CSS that it would be best not to have to put in the unnecessary <span></span> markup in order to make a nice looking link/button. At least this way, the HTML stays clean (of layout markup) - I'm essentially using wicket to abstract the styling into the component, rather than polluting the HTML.
Anton - thank you, that was exactly what I was looking for - problem solved. 2009/10/7 Jeremy Thomerson <jer...@wickettraining.com>: > Override oncomponenttagbody > > Seems strange that you'd tie your JAVA file to a CSS styling requirement > rather than your HTML file. Doesn't seem like the right separation to me, > but hey - your app. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Tue, Oct 6, 2009 at 11:28 PM, Richard Nichols > <r...@richardnichols.net>wrote: > >> Is there a way to have it added by wicket (see orig. msg)? >> >> The requirement or content of the <span> might change if the CSS style >> changes. I'd like to encapsulate that logic as a wicket component if >> possible. >> >> 2009/10/7 Jeremy Thomerson <jer...@wickettraining.com>: >> > Just add the span to your markup in your *.html file. >> > >> > -- >> > Jeremy Thomerson >> > http://www.wickettraining.com >> > >> > >> > >> > On Tue, Oct 6, 2009 at 11:20 PM, Richard Nichols <r...@visural.com> wrote: >> > >> >> Hi everyone, I'm a new Wicket user and I have (what I hope is) a >> >> simple question - >> >> I have a SubmitLink - >> >> >> >> <a href="#" wicket:id="login">Login</a> >> >> ... >> >> add(new SubmitLink("login")); >> >> >> >> I want to change the rendered content of the <a></a> tag such that it is >> - >> >> >> >> <a href="#" wicket:id="login" onClick= ... (all the regular wicket >> >> stuff) ...><span>Login</span></a> >> >> >> >> i.e. just wrap the raw content of the <a> tag with <span>. This is to >> >> support CSS link styling. Because the CSS requirements might change >> >> over time, I'd like wicket to add this markup, rather than putting it >> >> in the HTML. >> >> >> >> I've tried to figure out how to do this from the examples and the >> >> wicket source, but I feel like I'm missing something obvious... >> >> >> >> cheers, >> >> Richard. >> >> >> >> -- >> >> Richard Nichols :: http://www.visural.com/ :: >> >> http://www.richardnichols.net/ >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> > >> >> >> >> -- >> Richard Nichols :: http://www.visural.com/ :: >> http://www.richardnichols.net/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > -- Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org