create a wrapper that can instantiate pages lazily

interface Crumb { IModel getLabel(); Page gePage(); } put your lazy
logic into getPage() impl.

-igor

On Wed, Sep 22, 2010 at 1:01 PM, Luther Baker <[email protected]> wrote:
> I have a default template page that contains a <ul> implementation of a
> crumb trail. Therefore, the base class template has both the open and close
> tags of the list element. A few links in the crumb trail are manage by the
> template class - but I'd like to be able to add a few from the child pages.
>
> I've tried passing a list of 'response' Pages and labels from the child to
> the parent but some of the page need to be instantiated and passed arguments
> and I end up instantiating response pages before the user ever clicks on a
> link.
>
> Can someone chime in with a more elegant approach to this? I feel like I'm
> going down a rabbit hole. I guess I could simply create a panel - but then
> I'd need to get links from two places ...
>
> Thanks,
> -Luther
>

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

Reply via email to