Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
jar
Table.jar 6.6 kB 10 06-Nov-2008 22:40 Dirk Frederickx Reset to v0.3
java
Table.java 15.6 kB 11 06-Nov-2008 22:41 Dirk Frederickx Reset to v0.3
gif
anchorLightBG.gif 0.1 kB 1 21-Feb-2006 17:59 206.17.172.5

This page (revision-121) was last changed on 11-Jun-2012 12:01 by 194.168.223.147  

This page was created on 15-Feb-2005 21:09 by DirkFrederickx

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 854 added 37 lines
----
!Problems with Link References inside Table Plugin Tables
Table Plugin with JSPWiki 2.2.33
I started using the Table Plugin and noticed that links to wiki inside these tables pages do not know their referring pages (ie referenced by became nobody). Having a look at the source, it looks like a weakness in the plugin framework in that plugins are asked to generate HTML and can't provide other info (such as link references). Am I missing something?
I did find a workaround which required changes to the plugin Table.java:
{{{
m_result.append( m_engine.textToHTML( m_context,
aBody.substring( cell.start,
cell.end ) ) );
}}}
becomes
{{{
m_result.append( m_engine.textToHTML( m_context,
aBody.substring( cell.start,
cell.end ),
(StringTransmutator)m_context.getVariable("translator.localLinkHook"),
(StringTransmutator)m_context.getVariable("translator.localLinkHook")));
}}}
and to WikiEngine.java (3 lines added):
{{{
private String textToHTML( WikiContext context,
String pagedata,
StringTransmutator localLinkHook,
StringTransmutator extLinkHook,
StringTransmutator attLinkHook,
boolean parseAccessRules )
{
context.setVariable("translator.localLinkHook", localLinkHook);
context.setVariable("translator.extLinkHook", extLinkHook);
context.setVariable("translator.attLinkHook", attLinkHook);
...
}}}
- Paulj 14/Sept/2007
Version Date Modified Size Author Changes ... Change note
121 11-Jun-2012 12:01 41.001 kB 194.168.223.147 to previous
« This page (revision-121) was last changed on 11-Jun-2012 12:01 by 194.168.223.147