incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx" <dirk.frederi...@gmail.com>
Subject Re: Customizing and Collapsible Lists
Date Sun, 11 May 2008 23:00:59 GMT
Actually, collapsible lists need to be rendered separately for the
LeftMenu and the PageContent.  Therefore, we need a way to identify
both regions.

However, there **should** not be any link with the use of tabbed sections.
Plse log this issue as an improvement request in JIRA.


dirk



On 5/12/08, Terry Steichen <terry@net-frame.com> wrote:
> Dirk,
>
> Thank you - that did it.  Should we enter a JIRA issue (or some other
> way document this)?  A related question is why does this dependency
> exist?  And, in general, is collapsible list the only construct with
> this requirement, or is if more general?
>
> Terry
>
> On Sun, 2008-05-11 at 23:43 +0200, Dirk Frederickx wrote:
>
> > Terry,
> >
> > Make sure to keep in your pagecontent something with id="pagecontent".
> > This is used by the js to identify the region were collapsibles should
> > be rendered.
> >
> > So, iso just removing all tabbed section tags, replace them by
> >
> > <div id="pagecontent">
> >
> > </div>
> >
> > dirk
> >
> > On 5/11/08, Terry Steichen <terry@net-frame.com> wrote:
> > > Dirk,
> > >
> > > All I do is delete the bracketing TabbedSection and Tab tags.  Once I do
> > > that, collapsible lists don't work.  There are no Javascript errors
> > > indicated.  The contents of the relevant part of PageContent.jsp are:
> > >
> > >
> > >        <wiki:TabbedSection defaultTab='${param.tab}' >
> > >
> > >          <wiki:Tab id="pagecontent" title='<%
> > >        =LocaleSupport.getLocalizedMessage(pageContext, "view.tab")%>'
> > >        accesskey="v">
> > >            <wiki:Include page="PageTab.jsp"/>
> > >                <wiki:Permission permission="allPermission">
> > >            <wiki:PageType type="attachment">
> > >              <div class="information">
> > >                    <fmt:message key="info.backtoparentpage" >
> > >
> > >        <fmt:param><wiki:LinkToParent><wiki:ParentPageName/></wiki:LinkToParent></fmt:param>
> > >                </fmt:message>
> > >              </div>
> > >              <div style="overflow:hidden;">
> > >                <wiki:Translate>[<%= c.getPage().getName()%
> > >        >]</wiki:Translate>
> > >              </div>
> > >            </wiki:PageType>
> > >                </wiki:Permission>
> > >          </wiki:Tab>
> > >
> > >        </wiki:TabbedSection>
> > >
> > > Again, all I'm doing is removing the <wiki:TabbedSection> and <wiki:Tab>
> > > tags.  If I restore them (as above) the collapsible list works fine.
> > >
> > > BTW, I did go through the CSS and could find no apparent/logical linkage
> > > between these tags and collapsible list behavior.  But - somehow - that
> > > linkage appears to exist.  (I just verified it again to make sure.)
> > >
> > > Terry
> > >
> > >
> > > On Sun, 2008-05-11 at 06:29 +0200, Dirk Frederickx wrote:
> > >
> > > > Terry,
> > > >
> > > > That should indeed be possilble. Collapsible list are completely
> > > > independent from the TAB handling.
> > > >
> > > > Can you check whether, after the removal of the tabbed-sections, the
> > > > javascript is not throwing any error ?  You may have removed some
> > > > stuff which is required by the js.  If this is the case, also the
> > > > collapsibles, etc., will not function anymore.
> > > >
> > > >
> > > > dirk
> > > >
> > > > On 5/11/08, Terry Steichen <terry@net-frame.com> wrote:
> > > > > I'm customizing the PageContent.jsp to remove the TabbedSection and
Tab
> > > > > tags (View, Attach, Info) in favor of a simple, direct display of
the
> > > > > page (PageTab.jsp).  It seems to be working fine except for the fact
> > > > > that the collapsible lists (%%collapse) don't work any more.  I looked
> > > > > through jspwiki.css in a vain attempt to figure out why.
> > > > >
> > > > > Is there a simple way to do what I'm trying to do (skip the tabbed
> > > > > structures) and still use collapsible lists?
> > > > > [Dirk?]
> > > > >
> > > > >
> > >
>

Mime
View raw message