Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8036555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:39:33+00:00 2026-06-05T02:39:33+00:00

On the JSTL page I have following divs <div dojoType=dijit.layout.TabContainer style=width: 100%; height: 100%;

  • 0

On the JSTL page I have following divs

<div dojoType="dijit.layout.TabContainer" style="width: 100%; height: 100%;" doLayout="false" id="dojoTabbedPane" >
            <c:forEach items="${summariesMap}" var="summaryEntry">
                <div dojoType="dijit.layout.ContentPane" title="${summaryEntry.key}">

I try to find all divs under (including dojoTabbedPane) in order to recersively destroy all the contentPane under it. Then I can use jQuery.load() to reload contents and use

dojo.parser.parse(dijit.byId("dojoTabbedPane"));

to re-parse the component to make sure the tabbedPane can be rendered(otherwise it doesn’t and cause memory leak or error)

Here the question is:
(1) Am I on the right track to re-parse the dojo TabbedContainer?
(2) Why each time the findWidgets function just return array with size 0?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:39:35+00:00Added an answer on June 5, 2026 at 2:39 am

    I’ll answer 2 first: because dijit.findWidgets expects a DOM node, not a widget. If you need to find all widgets inside another widget, you can use getDescendants instead:

    var descWidgets = dijit.byId("dojoTabbedPane").getDescendants();
    

    Onto question 1: First off: if you want to destroy all the tabs in a TabContainer, you can use :

    dijit.byId("dojoTabbedPane").destroyDescendants();
    

    Now, if I understand you correctly, you subsequently grab a string of HTML from the server (using jQuery), and want to add it to the TabContainer. This new content contains several ContentPane divs, and you want these to become the new tabs in the TabContainer.

    I may be wrong here, but I don’t think that’s doable without some gnarly hack. Once you’ve parsed/instantiated a TabContainer, you should add tabs using addChild, passing instantiated ContentPanes.

    This means that if you get new HTML content like this from the server (via your jQuery load):

    <div dojoType="dijit.layout.ContentPane" title="new tab1">foo</div>
    <div dojoType="dijit.layout.ContentPane" title="new tab2">bar</div>
    

    .. then your best bet is to remove the old TabContainer and make a new one, then parse the whole thing. If you’re able to change the content you get from your server, perhaps you can simply wrap that in <div dojoType="dijit.layout.TabContainer....

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to use JSTL but have the following problem: Index.xhtml page: <?xml version=1.0 encoding=UTF-8?>
I have a .jsp page that begins with <%@ taglib uri=http://java.sun.com/jstl/core prefix=c %> <%@
I have a JSP page which uses some kind of JSTL statment to refer
I have a page with jstl included. In jsp file I have to pull
I have the following jsp file <%@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1%> <%@ page
I have the following code in my jsp: <c:forEach var=value items=${MyList} varStatus=loop> <tr><td><div id=Name1>Here:${value.name}</div></td></tr>
On a JSTL/JSP page, I have a java.util.Date object from my application. I need
I have used spring MVC with JSP/JSTL for my previous application. I was going
Are there any libraries that support JSTL style coding in an ASP MVC view?
is it possible to do something like this in JSTL: <div class=firstclass<c:if test='true'> someclass</c:if>>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.