You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Francisco Javier Rosado (JIRA)" <je...@portals.apache.org> on 2010/02/26 12:13:28 UTC

[jira] Updated: (JS2-1114) [velocity] Null reference [template 'decorations/layout/jetspeed/header.vm', line 49, column 17] :${layoutFragment.id} cannot be resolved

     [ https://issues.apache.org/jira/browse/JS2-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francisco Javier Rosado updated JS2-1114:
-----------------------------------------

    Attachment: header.vm

This is the file thast contains the modification. I don't knwo if this is the correct modification, but works...

> [velocity] Null reference [template 'decorations/layout/jetspeed/header.vm', line 49, column 17] :${layoutFragment.id} cannot be resolved
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JS2-1114
>                 URL: https://issues.apache.org/jira/browse/JS2-1114
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Decorations/Themes
>    Affects Versions: 2.2.0
>         Environment: Apache 2.2 + mod_jk + jboss4.0.5 + oracle10g + windows
>            Reporter: Francisco Javier Rosado
>            Priority: Trivial
>         Attachments: header.vm
>
>
> When I start my portal or a binary distribution of JetSpeed 2.2.0, in the logs, appears a trace that reads as follows:
> 2010-02-25 18:54:14,033 INFO  [velocity] Null reference [template 'decorations/layout/jetspeed/header.vm', line 49, column 17] :${layoutFragment.id} cannot be resolved.
> This not produce effects, but is ugly.
> This line is in header.vm. 
> #defineLayoutObjects()
> .
> .
> <div id="layout-${layoutFragment.id}" class="#PageBaseCSSClass()" >
> This variable (layoutFragment) is not initialized, and I thought must be:
> <div id="layout-${rootFragment.id}" class="#PageBaseCSSClass()" >
> Because rootFragment is the variable initialized in the jetspeed_macros.vm
> #macro (defineLayoutObjects)
>   #set($preferedLocale = $JS2RequestContext.locale)
>   #set($rootFragment = $jetspeed.currentFragment)
>   #set($site =$request.getAttribute("org.apache.jetspeed.portalsite.PortalSiteRequestContext"))
>   #set($theme = $request.getAttribute("org.apache.jetspeed.theme"))
>   #set($layoutDecoration = $theme.getDecoration($rootFragment))
> #end
> Regards
> Francisco Rosado

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org