i kind of like the way ExternalLink works.
I personally would like that Link also worked that way, i already mentioned that before but others didn't like that

In my opinion a link is 2 things. The url and the text. That you have to embed that text again with a extra component is pitty in my eyes.
(and uses memory, for example look at a listview/repeater with links in its columns and some dynamic text...)

Currently the Model object of a Link isn't used for anything i believe so why i just can't use that for its label.

What is strange is that Externallink also doesn't use the model for anything.. It stores the label and the href as its own attributes..

johan



On 1/17/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote:
For ExternalLink objects I can specify the link's text directly, and I can't
embed a span to do the same. With Link and its subclasses, I can ONLY embed
span (or other) tags. Right? That's a pretty striking functional difference
between related classes.

I see this has come up on the list once before (subject: HyperLink Text) but
wasn't resolved. It's pretty important to people learning Wicket to be able
to specify a link's text in the same way, whether it's "internal" or
external. And in unusual cases where you have a link in markup whose text
varies and whose target page is sometimes in Wicket, sometimes not, you
have to resort to some fairly ridiculous coding. (This is in the parent
page template of a half-migrated app,  if you're trying to dream up the
scenario.)

Nathan



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to