Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-4) was last changed on 10-Mar-2007 14:54 by HarryMetske  

This page was created on 17-Jun-2005 09:42 by 212.123.14.84

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 4 changed one line
|Submitter|212.123.14.84
|Submitter|DirkFrederickx
At line 22 changed one line
<wiki:Variable var='versionLabel' default="&nbsp;"/>
<wiki:Variable var='versionLabel' default=" "/>
At line 30 added 22 lines
----
Here's a workaround which seems to solve the problem.
Apparently the wiki metadata of a page only gets initialised by a call to textToHTML.
Obviously, this is not done as you iterate over different versions of a page.
Below you find the additional java in the jsp which does the trick.
-- [DF|DirkFrederickx]
{{{
<wiki:HistoryIterator id="currentPage">
<%
//need to run textToHtml so that variables get initialised again !!
//Ugh!
WikiContext cc = (WikiContext) c.clone();
cc.setPage(currentPage);
String pagedata = cc.getEngine().getPureText( currentPage );
cc.getEngine().textToHTML( cc, pagedata );
%>
<wiki:Variable var='versionLabel' default=" "/>
</wiki:HistoryIterator>
}}}
Version Date Modified Size Author Changes ... Change note
4 10-Mar-2007 14:54 2.311 kB HarryMetske to previous bug closed
3 19-Jun-2005 22:45 2.162 kB Administrator to previous | to last
2 19-Jun-2005 10:04 1.547 kB DirkFrederickx to previous | to last
1 17-Jun-2005 09:42 0.635 kB 212.123.14.84 to last
« This page (revision-4) was last changed on 10-Mar-2007 14:54 by HarryMetske