get space properties in custom JSP
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2007 10:01 AM
Hi,
I have customized browse.jsp if the space has a certain aspect applied. I have overriden the navigation in my web-custom-config.xml. This works perfectly (i.e when it goes to a space with the aspect applied it shows the custom browse.jsp, when it goes to a normal space, it uses the normal out-of-the-box browse.jsp).
In my custom browse.jsp I have several freemarker templates that I have placed. Within these freemarker templates I want to display certain space properties, but even when I try ${space.name} I get an error "'Expression space is undefined".
Could someone help?
I have customized browse.jsp if the space has a certain aspect applied. I have overriden the navigation in my web-custom-config.xml. This works perfectly (i.e when it goes to a space with the aspect applied it shows the custom browse.jsp, when it goes to a normal space, it uses the normal out-of-the-box browse.jsp).
In my custom browse.jsp I have several freemarker templates that I have placed. Within these freemarker templates I want to display certain space properties, but even when I try ${space.name} I get an error "'Expression space is undefined".
Could someone help?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2007 10:41 AM
I figured it out. When I called the freemarker template using the <r: template> tag I did not include model="#{NavigationBean.templateModel}"
This passed the context and the space details are now available.
This passed the context and the space details are now available.
