Issue Details (XML | Word | Printable)

Key: CVP-2
Type: Bug Bug
Status: In Progress In Progress
Priority: Minor Minor
Assignee: Bob Swift
Reporter: Erik de Wildt
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Confluence Visio Plugin

pageIndex parameter has no effect

Created: 27/Mar/08 07:32 AM   Updated: 28/Mar/08 08:23 AM
Component/s: None
Affects Version/s: 1.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. File example.vsd (107 kB)

Environment: MS Windows 2000, Confluence 2.7.2, MS Visio 2003

Labels:


 Description  « Hide
The pageIndex parameter doesn't seem to work.
Whatever the value of "pageIndex" is, in the rendered html the param CurrentPageIndex stays 0 and thus always only the first tab of a visio is displayed.

For example: {visio:^IMS.vsd|pageIndex=0} results in:

<param name='CurrentPageIndex' value='0'>

but {visio:^IMS.vsd|pageIndex=1} also results in:

<param name='CurrentPageIndex' value='0'>

I've tested this with version these versions of the plugin:

  1. visio-plugin-1.0-b1.jar
  2. visio-plugin-1.0.jar


 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Bob Swift added a comment - 27/Mar/08 05:30 PM
Thanks for the report. Your markup is the same for both examples. If you could attach an example visio, that would help with testing.

Erik de Wildt added a comment - 28/Mar/08 02:20 AM - edited
I've attached an example visio file containing 3 pages.

There was indeed an typo in the markup of my problem description. This is now corrected.


Bob Swift added a comment - 28/Mar/08 08:16 AM
Erik, thanks. Good example. There is a mis-match between documentation and code. I will fix the code to use pageIndex as documented - it is more usable than currentpageindex. However, the code still uses currentpageindex. As a temporary workaround, just change your markup to currentPageIndex. Sorry about that.