Hi, On Apr 9, 2016 9:42 AM, "Thorsten Schöning" <tschoen...@am-soft.de> wrote: > > Hi all, > > I have a navigation like the following: > > > Parent 1 > > - Child 1 > > - Child 2 > > Parent 2 > > - Child 1 > > - Child 2 > > Parent 3 > > - Child 1 > > - Child 2 > > The important thing is that all the "Parent X" levels are no links, > just wicket:message, simply because there's no valuable content to > provide, but all the "Child X" are links. > > What I would like to achieve is automatically adding a headline on > each requested page like the following: > > > Parent 1: Child 1 > > If Parent 1/Child 1 was requested. > > > Parent 1: Child 2 > > If Parent 1/Child 2 was requested and so on. Currently I do this > manually for each page using "wicket:message" and I'm looking for a > solution to automate this, because the navigation levels are already > translated and all the words should be the same anway. > > I already had a look at BreadCrumbBar and IBreadCrumbParticipant, but > am not sure how to approach from there. The links are Wicket > components and I can do things with them, e.g. get their translated > texts and such, all that Wicket currently does as well. So those > should be usable as "IBreadCrumbParticipant" somehow. > > But how would I access their parents, which are only wicket:message? > Whatever my "IBreadCrumbParticipant" looks like, it would need the > translation of "Parent X" as well, but there's no available component > to work with right now.
<wicket:message> is just a convinience for new Label(id, new ResourceModel(key)) > > Do you have any ideas for me? Thanks! > > Mit freundlichen Grüßen, > > Thorsten Schöning > > -- > Thorsten Schöning E-Mail: thorsten.schoen...@am-soft.de > AM-SoFT IT-Systeme http://www.AM-SoFT.de/ > > Telefon...........05151- 9468- 55 > Fax...............05151- 9468- 88 > Mobil..............0178-8 9468- 04 > > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln > AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >