1
저는 Dojo 툴킷을 처음 사용하게되어 매우 좋아합니다. 하지만 중첩 된 탭 자동 새로 고침에 문제가 있습니다. 다음은이 문제가있는 연습 코드 샘플입니다. 하위 탭이 많을 때 큰 성능 문제가 발생하므로 현재이 문제에 관심이 있습니다. 예 : 내 하위 탭은 레코드 검색을위한 머리 글자 A-Z입니다.dijit.layout.TabContainer 중첩 탭 자동로드
나는이 문제를 해결하기 위해 모든 종류의 노력을 기울였습니다.
parseOnLoad=true/false
executeScripts=true/false
preload=true/false
nested=true/false
상위 페이지 :
<div id="mainTabContainer" name="mainTabContainer" dojoType="dijit.layout.TabContainer" persist="true" style="margin:10px; width:800px; height:700px">
<div
id="tab1"
name="tab1"
dojoType="dojox.layout.ContentPane"
title="DblClick"
selected="true"
closable="false"
parseOnLoad="true"
executeScripts="true"
preload="false"
preventCache="true"
href="/dojo1.jsp?sParentTabID=tab1">
---
</div>
<div id="tab2" name="tab2" dojoType="dojox.layout.ContentPane" title="Read File" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo2.jsp?sParentTabID=tab2">---</div>
<div id="tab3" name="tab3" dojoType="dojox.layout.ContentPane" title="Form get/post" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo3.jsp?sParentTabID=tab3">---</div>
<div id="tab4" name="tab4" dojoType="dojox.layout.ContentPane" title="Accordions" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo4.jsp?sParentTabID=tab4">---</div>
<div id="tab5" name="tab5" dojoType="dojox.layout.ContentPane" title="Nested Tabs" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo5.jsp?sParentTabID=tab5">---</div>
<div id="tab6" name="tab6" dojoType="dojox.layout.ContentPane" title="Menu" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo6.jsp?sParentTabID=tab6">---</div>
<div id="tab7" name="tab7" dojoType="dojox.layout.ContentPane" title="Simple Objects" closable="false" extractContent="true" executeScripts="true" parseOnLoad="true" href="/dojo7.jsp?sParentTabID=tab7">---</div>
<div id="tab8" name="tab8" dojoType="dojox.layout.ContentPane" title="Calendar" closable="false" extractContent="true" executeScripts="true" parseOnLoad="true" href="/dojo8.jsp?sParentTabID=tab8">---</div>
</div>
하위 페이지 (dojo5.jsp) :이 실제로 (거의 해제 도장 1.4에서 제대로 작동
<div id="mainTabContainer_a4d6313" name="mainTabContainer_a4d6313" dojoType="dijit.layout.TabContainer" nested="true" style="width:95%;height:200px;">
<div id="tab1_a4d6313" name="tab1_a4d6313" dojoType="dijit.layout.ContentPane" title="First Tab" selected="true" closable="false" href="/test.jsp?tabID=tab1_a4d6313">---</div>
<div id="tab2_a4d6313" name="tab2_a4d6313" dojoType="dijit.layout.ContentPane" title="Second Tab" closable="true" href="/random.jsp?tabID=tab2_a4d6313">---</div>
<div id="tab3_a4d6313" name="tab3_a4d6313" dojoType="dijit.layout.ContentPane" title="AJAX Tab" closable="false" href="/random.jsp?tabID=tab3_a4d6313">---</div>
</div>
차갑다. 나는 나중에 이것을 시도 할 것이다. 결국 Dojo.form.buttons를 만들어서 탭을 시뮬레이트하고 각각 하나는 DIV를 채우는 xhrGet 메서드 하나뿐입니다. 내가했던 것처럼 똑같은 결과를 얻었습니다. 탭이 없어도 예쁘지 않았습니다. 1.4 번 해봐야 겠어. 어딘가에 changelog/deprecated 로그가 있습니까? –