<div data-dojo-type="dijit/layout/ContentPane" title="My first tab" data-dojo-props="selected: true">
so, pada page yg ada tab, sebelum <html>
declare
<c:if test="${not empty tabId}">
<c:choose>
//contohnya hantar uiModel.addAttribute(" tabId","studyLeave");
// tapi aku tak sure sama ada leh guna test="${tabId eq 'studyLeave'}" atau test="${ tabId=='studyLeave'}"
<c:when test="${tabId eq 'studyLeave'}">
<c:set var="studyLeaveSelected" value="true" />
</c:when>
<c:otherwise>
//kat sini set utk tab yg memula nk tunjuk kalau takde tab yg kita select
<c:set var="studyLeaveSelected" value="true" />
</c:otherwise>
</c:choose>
</c:if>
pastu pada declaration
<div data-dojo-type="dijit/layout/ ContentPane" title="My first tab" data-dojo-props="selected:<c:out value="${st udyLeaveSelected}" default="false" /> ">
No comments:
Post a Comment