[jboss-user] [JBoss Portal] - Re: Get page name during layout rendering

2007-11-30 Thread nollie
This might not be the elegant solution you were hoping for, but you can use 
request.getPathInfo(); and parse your page name out of it.  That's what I'm 
doing in my menu.jsp, which is included in the layout.jsp.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109407#4109407

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109407
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Get page name during layout rendering

2007-11-30 Thread syllant
Yes, this would work for breadcrumbs, even though you have to make assumptions 
to stop at portal root when reading parent path.

But this would not work when building navigation menu beacause you need more 
information than page name. I use 'navigation' region to display top pages, and 
I build a tree-menu of nested pages inside layout. I only could build this menu 
inside 'navigation' region and display it elsewhere in the page because I've 
implemented it with Javascript.

I find layout management too rigid, hope it will be more flexible with next 
releases.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109458#4109458

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4109458
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user