The HelloWorldPlugin (or just "HelloWorld" in use) is a NeWikiPlugin that provides a bit more than a minimal 'Hello World' plugin, providing a core set of features (such as parameter handling and authentication checking) as a demo and beginning point for plugin development.

Parameters#

  • debug = 'true' | 'false' . When true, displays debugging level information. Defaults to false.
  • text = 'content' . An optional parameter to provide alternate "Hello World" text to the plugin.
No external dependencies (other than JSPWiki).

See also: RestrictedHelloWorldPlugin


Tests#

(NOTE: these tests may fail if the plugin has not been installed.)

[{HelloWorld}]

Wiki : HelloWorldPlugin - Plugin insertion failed: Could not find plugin HelloWorldWiki : HelloWorldPlugin - Plugin insertion failed: Could not find plugin HelloWorld

[{HelloWorld debug='true' text='Bonjour tout le monde!' 

this content is in the body. }]

Wiki : HelloWorldPlugin - Plugin insertion failed: Could not find plugin HelloWorldWiki : HelloWorldPlugin - Plugin insertion failed: Could not find plugin HelloWorld


Notes#

  • Note that plugin invocation occurs more than once per page view, as plugins get parsed and invoked during permission checks and other calls for the page's HTML content. This in itself isn't a problem, but you should know that the plugin's execute() method gets called multiple times per page view, which whatever impact that may have.
  • The plugin body is returned as a null unless it is separated from the first (parameter) line by at least one line of whitespace. This is a bug I thought fixed; apparently not.

Tags: 
Tag Failed:
Tag 'Ne Wiki Plugin' undefined (page does not exist)