NPException generated when accessing Context on ftl freemarker

Hi. I have created a document template using freemarker. How can i get the properties of parent of the current doc. I can use the session to get what i want, but the context doesn`t work properly, it causes error.

<img src=${Env['nuxeo.url']}/img/stema_republikes.jpg" height="7%" width="5%"/>
<p style="font-weight:bold;font-size: 12pt;font-family: "Times New Roman", Times, serif;">REPUBLIKA E SHQIPËRISË</br>MINISTRIA E DREJTËSISË</br>Drejtoria e Përgjithshme e Burgjeve</p>
<hr style="height:20px; color:black"/>
    <p style="float: right; width: 50%; text-align: right;font-size: 12pt;font-family: "Times New Roman", Times, serif;">Afati i Ruajtjes __ vit</br>Kopje nr. ___</p>
<p><span  style="font-weight:bold;font-family: "Times New Roman", Times, serif;">URDHËR TRANSFERIMI</span>
</br>Nr.__________ Datë ${CurrentDate.format("dd.MM.yyyy")}</p>

<p> ${Document["vendime:numer"]}</br>
2 votes

1 answers




1 votes