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]

Reply via email to