I'm fishing for best practice in this type of situation - do I use the solution you outlined, or do I add a simple invisible dummy link instead of the the resource link, or is there a better solution that I'm missing?

Luca Provenzani wrote:
i don't understand the problem....

can't you check the resource before link is rendered?
You can create a new resource object empty in the case of null bytes....and
setVisible(false) or extend link to do this automatically on empty
resource...

Luca

2009/10/14 Iain Reddick <[email protected]>

Hi,

I need to display a resource link conditionally, based on whether a
resource exists, or is null. The resource itself is bytes in a database and
should not be anchored to a component.

How should I handle this, with regard to the resource being nullable?

Thanks.

iainr

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




Reply via email to