forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gavin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FOR-203) 2nd level tabs are not selected appropriately
Date Tue, 27 Jun 2006 11:42:30 GMT
    [ http://issues.apache.org/jira/browse/FOR-203?page=comments#action_12418011 ] 

Gavin commented on FOR-203:
---------------------------

I have tested this and it all seems to work fine. From what I understand of the original problem
it could be a case of misunderstanding of the configuration.

I added a new directory called 'bug-sample'  as a subdir off of xdocs.
I added in a test file (I used static.xml) in this directory.
I added an entry to tabs.xml as a sub-tab of the samples tab. wich looks like :-

    <tab id="samples-sample3" label="Sample3" dir="bug-sample" indexfile="static.html"/>

forrest run and it shows in the second level tabs area as 'Sample 3'
When clicked on goes correctly to /bug-sample/static.html.

The OP stated "This happens because the starts-with() path comparison fails for menu entries
that do not reside the same directory as is specified in the "dir" attribute of the 2nd level
tabs. "

Of course it wont, you should be specifying the directory that the menu entries reside in!
This makes me think that maybe the 'dir' attribute did not point to the new directory.

tested in 0.8-dev.

Should this be closed ?


> 2nd level tabs are not selected appropriately
> ---------------------------------------------
>
>          Key: FOR-203
>          URL: http://issues.apache.org/jira/browse/FOR-203
>      Project: Forrest
>         Type: Bug

>   Components: Skins (general issues)
>     Versions: 0.6
>     Reporter: Lorenz Froihofer
>      Fix For: 0.8-dev
>  Attachments: bug-demo.tgz
>
> The 2nd level tabs are not shown for menu entries that caused the issue FOR-111. This
happens because the starts-with() path comparison fails for menu entries that do not reside
the same directory as is specified in the "dir" attribute of the 2nd level tabs.
> See the attached bug-demo.tgz for an example. Select "Samples/Apache document" and notice
that the 2nd level tabs are shown. Now select "Samples/BUG DEMO" and notice that the 2nd level
tabs are not shown.
> This is because the document corresponding to "Samples/Apache document" resides in the
directory "/samples" whereas the document corresponding to "Samples/BUG DEMO" resides in the
directory "/bug-sample".
> Kind regards,
>   Lorenz Froihofer.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message