Martijn, Will do.
In the meantime, anyone have suggestions how to create a link to an external web page that is only visible if the model is not null? Thanks, Tauren On 9/26/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Please add a feature request to the JIRA. > > Martijn > > On 9/26/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > > I don't understand why ExternalLink doesn't store the external href as > > the model. It stores it in an href property. It seems to not follow > > the normal wicket way. > > > > This makes it difficult to do things like display a link only if the > > model is not null. For instance: > > > > add(new ExternalLink("web", new PropertyModel(service,"web")) { > > @Override > > public boolean isVisible() { > > if (getModelObject() == null) { > > return false; > > } > > return super.isVisible(); > > } > > }); > > > > The problem is that getModelObject() is always null, because the > > PropertyModel is stored in the href property. And since isVisible() > > is part of Component, the href property isn't accessible. > > > > Any suggestions for a simple solution? > > > > Thanks, > > Tauren > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.0-beta3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]