trinidad already has that component

-M

On 2/22/07, AMIR-TAHMASSEB Marc <[EMAIL PROTECTED]> wrote:



Hi Madhav,

I'm also planning to create a Breadcrumb component.
My philosophie about breadcrumb is the it shows the position of the page in
the site map and note the position of the page in the user navigation
history. According to this you eliminate the problem of the browser back
button.

For me there is two possibilities :
 - each page know where it is.
 - only an object defined as a Site Map Manager, know where is a page.

Using the second possibility, you can imagine that each page give its name
to the Site Map Manager and then this one give back a list representing
labels and actions for the breadcrumb.

This is what I want to do but my biggest probleme is that I don't know how
to pass an attribute from a jsp to a Bean, before rendering the jsp...

regards,

Marc Amir-Tahmasseb




 ________________________________
 From: Madhav Bhargava [mailto:[EMAIL PROTECTED]
Sent: 21 February 2007 10:44
To: MyFaces Discussion
Subject: breadcrumb design





Hi All,



I am in the process of creating a component for breadcrumb generation for my
project.



I have following in mind:



Create a custom component for breadcrumb, with a renderer and a tag class.
Create a model bean that will back this component and will contain the
latest breadcrumb links and their navigation outcomes. This bean will be at
the session level
Create a breadcrumb event and queue that event in the decode method of the
renderer. This event will then be broadcasted to all the interested
listeners. In my case it will be the left menu which will have to reflect
where the user is.



Every page which requires a breadcrumb will have a breadcrumb tag defined in
the page.

There will be a hidden field on every page that will store the depth (or the
index of the last link) of the breadcrumb. Using this value the list of
links in the model will be updated.



Following are some problems that I am currently facing:



There can be many links present all over the place which can result in the
page control going to some page else which means that there will be a change
in the breadcrumb as well. How do you capture such events and make the
breadcrumb change?
How do you take care of the browser back button?



Regards,

Madhav


--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to