[
https://issues.apache.org/jira/browse/JSPWIKI-639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18133538#comment-18133538
]
Arturo Bernal commented on JSPWIKI-639:
---------------------------------------
I tried to reproduce this on a running instance: Tomcat 10.1 with a build of
master plus an unrelated parser change, Chrome. The parent page has a
tabbedSection with tabs named 1 and 2, and tab 1 contains an InsertPage of the
child page. The child page has a tabbedSection with the same tab names 1 and 2.
The page is not garbled. The HTML from the server has balanced div elements,
and the browser shows two tab bars, the child one inside tab 1 of the parent.
Switching works: parent tab 2 shows only the parent text of tab 2. Going back
to parent tab 1 shows the parent text and the child with its tab 1. Child tab 2
shows the text of tab 2 of the child.
So it does not reproduce with the current code. I did not test the old versions
of the report, other browsers or Internet Explorer, and the pages were not
saved through the editor, they were loaded from files. I leave the issue open
so the reporter can confirm with the exact pages that still fail.
> InsertPage fails if a tab name is imported that already exists
> --------------------------------------------------------------
>
> Key: JSPWIKI-639
> URL: https://issues.apache.org/jira/browse/JSPWIKI-639
> Project: JSPWiki
> Issue Type: Bug
> Components: Plugins
> Affects Versions: 2.8.3
> Environment: linux 2.6.32 tomcat 6.0.2 jvm 1.6
> Reporter: Rolf Schumacher
> Priority: Minor
>
> what I did: Entered two pages with tabbed sections and equal tab names. one
> includes the other (the parent includes the child)
> what I expected: to see the childs tab if I click on a the corresponding tab
> in the parent page
> what I got: the parent page gets garbled
> workaround: make tab names unique if required
> the parent page:
> %%tabbedSection
> %%tab-1
> text to show up in parent tab-1
> * [page to insert]
> [{InsertPage page='Page to insert'}]
> %%
> %%tab-2
> text to show up in parent tab-2
> %%
> %%
> the child page:
> %%tabbedSection
> %%tab-1
> text from tab-1 of page to be inserted
> %%
> %%tab-2
> text from tab-2 of page to be inserted
> %%
> %%
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)