WorldWander logo
Main

The Road Behind

Venezuela
Trinidad
Curacao
Galapagos
Ecuador
Peru
Bolivia
Paraguay
Argentina
Chile
Hong Kong
Thailand North
Thailand South
Malaysia
Cambodia
Singapore
Nepal
Kathmandu
Royal Trek
Nepal Trek
India
India Palace
Udaipur
Bangalore
Greece
Islands
Rhodes
Camping
Olympia
Turkey
Istanbul
Bath
Bursa
Cappadocia
Bodrum
South Africa
Garden Route
Cape Town
Namibia
Fish River
Etosha
Botswana
Zimbabwe
Wedding
Great Ruins
Germany
Bathroom
Netherlands
Spain
Madrid
Seville
Granada
Gibraltar
Morocco
Portugal
Sintra
France
Normandy
Egypt
Pyramids
Nile
Aswan
Abusimbel
Luxor
Valley of Kings
Alexandria
Red Sea
Jordan
Kings Valley
Aman
Palestine

The Road Ahead

Isreal
Czech Republic
Austria
Italy
Switzerland
England
Find pages
Unused pages
Undefined pages
Page Index

Set your name in
UserPreferences


Referenced by
...nobody




JSPWiki v2.2.33


BugReportHandler


The BugReportHandler is a sample WikiForms handler which can be used to generate bug reports. This handler creates a new page based on the parameters passed to it. The page contents consist of one table, filled with all parameters given, and then finally the "description" parameter.

Parameters

  • title = String. Title of the bug. Mandatory. This should be a full sentence. The created page name will be constructed from the title. Mandatory.

The following parameters are optional.

  • description = String. A general description string (which may contain WikiMarkup) which gets added to the end of the report.
  • version = String. You probably want to tie the bug report to a specific version of the software - this allows you to do that.
  • page = String. Each created page gets its name by concatenating the "title" parameter to the "page" parameter. Default is "Bug".
  • map = String. Normally, this plugin would just use the parameter name for the field names in the created table. You can use the map parameter to map the field names to longer strings. The syntax is "<field name>=<a longer string>;<field name 2>=<something else in the way of description;...".

Example

The following creates a bug report form. Notice how the submit button value of "x" is mapped to an empty string in the "map" parameter, which makes the BugReportHandler ignore the field completely.

[{FormSet form='reportform' status='NewBug' title='' 
map='container=Servlet Container;java_version=Java version;pageprovider=[PageProvider] used;criticality=[Bug criticality];x;status=[Bug status];browser_version=Browser version;url=URL;os=Operating System'}]
[{FormOutput form='reportform' handler='BugReportHandler' populate='handler'}]

[{FormOpen form='reportform'}]

|Title of the bug:| [{FormInput type='text' name='title' size=80}]\\''Mandatory. Please try to be brief, use a whole sentence of ten words or less.''
|JSPWiki version: |[{FormInput type='text' name='version'}]
|Servlet container: |[{FormInput type='text' name='container' size=40}]
|Java version: |[{FormInput type='text' name='java_version'}]
|Browser used: |[{FormInput type='text' name='browser_version'}]
|Operating system: |[{FormInput type='text' name='os'}]
|URL that shows the bug: |[{FormInput type='text' name='url' size=60}]\\''or type in a JSPWiki page name''
|Page Provider: |[{FormInput type='text' name='pageprovider' size=40}]
|Criticality: |[{FormSelect name='criticality' value='EnhancementRequest;CosmeticBug;*LightBug;MediumBug;BadBug;CriticalBug;FatalBug'}]

Please enter a freeform description here (in WikiMarkup!):\\
[{FormTextarea name='description' rows=25 cols=80}]

[{FormInput type='submit' name='x' value='Submit report' size=100}]  (Please click only once!)
[{FormClose}]

The result would look like this:

Title of the bug:
Mandatory. Please try to be brief, use a whole sentence of ten words or less.
JSPWiki version:
Servlet container:
Java version:
Browser used:
Operating system:
URL that shows the bug:
or type in a JSPWiki page name
Page Provider:
Criticality:

Please enter a freeform description here (in WikiMarkup!):

(Please click only once!)




Go to top  
This page last changed on 16-May-2005 22:57:18 EDT by unknown.
Please make one.