Thank you Martin for suggestions.
Tab library should be visible as I use other widgets (autocompleter) and
they work as expected. I have moved templates from the plug-in jar into
template\ajax directory but that did not solve the problem. I suspect either
tabbedpanel or div tags work contrary to what is described in tag reference
or the problem exists in a way I am loading content. Reference says that
that div tag executeScripts attribute is set to true by default. However I
have determined that the scripts that are loaded within content of the div
are not being executed. I am also loading content through java script
function that gets the reference to div widget and then calls refresh() on
it. This should parse the content and evaluate java script, at least this is
how it worked with DoJo 0.4.0 distribiuted with Struts 2.0.14. Could it be
that that method of ContentPane widget in DoJo 0.4.3 has been modified and
it does not evaluate scripts in loaded content anymore?
Regards,
Andrzej
On Wed, Jun 22, 2011 at 6:19 AM, Martin Gainty wrote:
> makes sure struts-dojo-tags.tld is placed in classes/META-INF folder and
> is declared as taglib in jsp
> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
>
> now you can execute the org.apache.struts2.dojo.views.jsp.ui.TabbedPanelTag
> Class from the tld via sx namespace identifier in jsp e.g.
>
>
> This is the first pane
>
>
>
>
>
>
>
>
> if the struts-dojo-tags.tld is not discovered you *may* have to place
> jsp-config taglib taglib-uri and taglib-location directives in web.xml
>
>
> /struts-dojo-tags
>
> /META-INF/struts-dojo-tags.tld
>
>
>
> also ensure template\ajax\tabbedpanel.ftl
> also ensure template\ajax\tabbedpanel-close.ftl
> ftls are located in ajax folder off the templates folder as seen above
>
> can anyone confirm struts-dojo-tags.tld are missing from 2.2.x distros?
> Martin Gainty
> __
> Jogi és Bizalmassági kinyilatkoztatás
>
> Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy
> jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése
> nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi
> alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen
> megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet
> tartalma miatt.
>
>
>
>
> > Date: Tue, 21 Jun 2011 16:53:15 -0500
> > Subject: Re: Migration from Struts 2.0.14 to Struts 2.2.3 - tabbed panel
> not working
> > From: vaterm...@gmail.com
> > To: user@struts.apache.org
>
> >
> > It seems that this problem is caused by scripts not being executed when
> the
> > content of the tab is loaded. Here is the example.
> >
> > Main tab has 3 other sub tabs A1, A2, A3. Each sub tab (lets say A1) has
> its
> > own tabbed panel with additional tabs (A11, A12, A13). Main tabbed panel
> > element is defined as follows:
> >
> >
> > > executeScripts="true">
> >
> >
> > When A1 is selected event is sent to X-selectChild topic. That event is
> > handled by a function that executes following:
> >
> > dojo.widget.byId(A1).href = ;
> > dojo.widget.byId(A1).cacheContent = false;
> > dojo.widget.byId(A1).refresh()
> >
> > The content of the A1 is provided by jsp which defines script element
> > similar to the following:
> >
> > dojo.addOnLoad(subscribeToNavigationEvents)
> >
> > subscribeToNavigationEvents() function is responsible for subscribing
> onto
> > the -selectChild topic and providing handler that does
> some
> > processing when any of the A11, A12 and A13 are selected.
> >
> > Turns out the dojo.addOnLoad(subscribeToNavigationEvents) is never
> executed
> > when the content of the tab A1 is loaded and the event handler is not
> > registered. It works fine in Struts 2.0.14 however. I would appreciate
> any
> > help.
> >
> > Regards,
> > Andrzej
> >
> >
> >
> > On Tue, Jun 21, 2011 at 2:34 PM, Andrzej Adamczyk >wrote:
> >
> > > Hello
> > >
> > > I am working on POC migrating application from Struts 2.0.14 to Struts
> > > 2.2.3 with DOJO 2.2.3 plugin. On the way DOJO framework will be updated
> from
> > > version 0.4.0 to 0.4.3.
> > >
> > > Application has main tabbed panel with few t