I haven't made a breadcrumbs component in tapestry. But I have a comment
on implementation:
If it's possible that some (or all) pages in the trail need parameters
(as you mentioned), don't use page links or Direct Links at all; your
pages (at least all of the ones that might end up as a "crumb") probably
ought to implement the IExternalPage (or is it IExternal? I always
forget...) interface, do the setup based on the objectid (or whatever
setup) in the activateExternalPage method, and then your component can
(should) use ExternalLinks. This will keep your links much nicer, and
the page setup logic contained within the appropriate page.
Vjeran Marcinko wrote:
Hello all.
I tried to develop my breadcrumbs component, but it seems that it is a
bit harder than expected to do it in component framework.
Anyway, has anyone developed the same and is willing to share?
IMPORTANT NOTE: this breadcrumb component should be dynamic in nature,
not using only PageLinks to render links, but also DirectLinks (or
whatever) to be able to pass some additional argument required for
displaying some breadcrumb page. Typical case is when some breadcrumb
link is leading to some EntityHome page of some db entity that
requires entity ID to be displayed.
Regards,
Vjeran
---------------------------------------------------------------------
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]