Hi Matt,
I will give it a try. Thx.
[EMAIL PROTECTED] wrote:
Your original suggestion of using a Stack should work just fine. Then on
the
JSP side you can use t:dataList. I have something very similar on the
project I'm working on. It's kind of complicated to explain but we have
a session bean managing a tree and whenever the page is changed a method
is called that can build the breadcrumb trail based on the tree bean.
The result is just stored in an ArrayList and we use t:dataList to
output the breadcrumb trail. It works very well. But you don't
necessarily need a session bean for this. It can probably be done using
a request bean and just use t:saveState on the page. Hope this helps.
Matt
-----Original Message-----
From: jhomuth [mailto:[EMAIL PROTECTED]
Sent: lundi 29 septembre 2008 12:55
To: MyFaces Discussion
Subject: Re: Breadcrumbs Component
Hey,
that is not a good option in my eyes, because, there might be sites
which can navigated in two or more different ways!
Example
Home > Passwordcontrol > ChangePassword
Home > Search > PasswordControl > ChangePassword
Mhm ok not the best example but they might be something like this.
But what I'm more interessted in is how to do the navigation rules. I
mean I won't like do put for every site one or more navigation rules
which go back in hierachie.
I mean in my above example I would have to make a navigation rule from
"ChangePassword" to "Passwordcontrol" and to Home. Imagine what effort I
will cost if there is a trail with 5-10 different sites. The
faces-config would be so large that nobody would look through there.
Any other suggestions?
Guy Bashan wrote:
Hi,
I don't know exactly the component you are talking about,
But why not simply put on each page different path?
It's the simplest and most straight forward way... why do any other
tricks?
Guy.
-----Original Message-----
From: jhomuth [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2008 6:20 PM
To: [email protected]
Subject: Breadcrumbs Component
Hello List,
I have a little conceptual problem. I want to use breadcrumb
functionality (Example: Home > You > are > here ) in my web app, which
is implemented with MyFaces, Tomahawk, and Tiles. But I don't know to
implement this. How should I save the trail. I thought about a session
scoped bean which has a stack or something else but I don't know how
this might work. Furthermore when I'm here (Home > Function 1>
SubFunction 2) and I click somewhere else then there have to be such
output (Home > Function 3). I hope you know what I mean. I read much
in
the Internet that I have to use the commandNavigation(2) tag, but how
to
keep the navigation trail, and how this is implemented in the
faces-config.
I would be happy about any examples.
Thx for suggestions