Hi
I have a Tabbox / tab setup.
On every b:tab, I get data from a database to populate page included into each tab.
But every time I even click any where on the the page, it refresh and get fresh data from the database.
On one page, code given below, when I select input, this page get refresh and deselect my selection and get fresh data.
Please you help, why this is happening.
many thank
<?xml version="1.0" encoding="UTF-8"?>
<div xmlns:s="http://www.backbase.com/s/"
xmlns:b="http://www.backbase.com/b/"
xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="spring" uri="/" %>
<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT"/>
<style type="text/css">
.odd1 { background-color: #ffcc11; }
.even1 { background-color: #ffffcc; }
</style>
Here goes overview data ...........
<div id="pkgPkgListA">
<s:behavior b:name="setstyle-example">
<s:event b:on="select">
<s:with b:target="../..">
<s:setstyle b:background-color="#7C90CD" />
</s:with>
<s:with b:target="../../td">
<s:setstyle b:color="#FFFFFF" />
</s:with>
</s:event>
<s:event b:on="deselect">
<s:with b:target="../..">
<s:setstyle b:background-color="#FFFFFF" />
</s:with>
<s:with b:target="../../td">
<s:setstyle b:color="#000000" />
</s:with>
</s:event>
</s:behavior>
<b:spacer b:width="0px" b:height="5px" />
<table>
<thead>
<tr>
<th></th>
<th style="width: 100px, background-color:FFccFc;">Col A</th>
<th style="width: 160px;">Col B</th>
</tr>
</thead>
<c:forEach var="pkgPkgListA" items="${pkgPkgListA}" varStatus="rowCounter">
<c:choose>
<c:when test="${rowCounter.count % 2 == 0}">
<c:set var="rowStyle" scope="page" value="odd1"/>
</c:when>
<c:otherwise>
<c:set var="rowStyle" scope="page" value="even1"/>
</c:otherwise>
</c:choose>
<tbody>
<tr class="${rowStyle}">
<td><input b:behavior="setstyle-example" type="checkbox" /></td>
<td><c:out value="${pkgPkgListA.attribute1}"/></td>
<td><c:out value="${pkgPkgListA.attribute2}"/></td>
</tr>
</tbody>
</c:forEach>
</table>
</div>
</div>
<div xmlns:s="http://www.backbase.com/s/"
xmlns:b="http://www.backbase.com/b/"
xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="spring" uri="/" %>
<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT"/>
<style type="text/css">
.odd1 { background-color: #ffcc11; }
.even1 { background-color: #ffffcc; }
</style>
Here goes overview data ...........
<div id="pkgPkgListA">
<s:behavior b:name="setstyle-example">
<s:event b:on="select">
<s:with b:target="../..">
<s:setstyle b:background-color="#7C90CD" />
</s:with>
<s:with b:target="../../td">
<s:setstyle b:color="#FFFFFF" />
</s:with>
</s:event>
<s:event b:on="deselect">
<s:with b:target="../..">
<s:setstyle b:background-color="#FFFFFF" />
</s:with>
<s:with b:target="../../td">
<s:setstyle b:color="#000000" />
</s:with>
</s:event>
</s:behavior>
<b:spacer b:width="0px" b:height="5px" />
<table>
<thead>
<tr>
<th></th>
<th style="width: 100px, background-color:FFccFc;">Col A</th>
<th style="width: 160px;">Col B</th>
</tr>
</thead>
<c:forEach var="pkgPkgListA" items="${pkgPkgListA}" varStatus="rowCounter">
<c:choose>
<c:when test="${rowCounter.count % 2 == 0}">
<c:set var="rowStyle" scope="page" value="odd1"/>
</c:when>
<c:otherwise>
<c:set var="rowStyle" scope="page" value="even1"/>
</c:otherwise>
</c:choose>
<tbody>
<tr class="${rowStyle}">
<td><input b:behavior="setstyle-example" type="checkbox" /></td>
<td><c:out value="${pkgPkgListA.attribute1}"/></td>
<td><c:out value="${pkgPkgListA.attribute2}"/></td>
</tr>
</tbody>
</c:forEach>
</table>
</div>
</div>
<?xml version="1.0" encoding="UTF-8"?>
<div xmlns:s="http://www.backbase.com/s/"
xmlns:b="http://www.backbase.com/b/"
xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="spring" uri="/" %>
<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT"/>
<b:tabbox style="height: 200px;">
<b:tab b:label="Assigned" id="thisAssigned" b:dirty="true" b:on="click"
b:action="load" b:url="/index.cfm?fuseaction=test.assigned" b:destination="id('thisAssigned')">
</b:tab>
<b:tab b:on="click" b:label="Awaiting Approval" id="thisAwaitingApproval" b:state="selected" b:dirty="true"
b:action="load" b:url="/index.cfm?fuseaction=test.awaitingApproval" b:destination="id('thisAwaitingApproval')">
</b:tab>
<b:tab b:label="Completed" id="thisCompleted" b:dirty="true"
b:action="load" b:url="/index.cfm?fuseaction=test.completed" b:destination="id('thisCompleted')">
</b:tab>
<b:tab b:label="Overview" id="thisOverview" b:dirty="true"
b:action="load" b:url="/index.cfm?fuseaction=test.overview" b:destination="id('thisOverview')" >
</b:tab>
<b:tab b:label="OverviewTableV" id="thisOverviewTableV" b:dirty="true"
b:action="load" b:url="/index.cfm?fuseaction=test.overviewTableV" b:destination="id('thisOverviewTableV')" >
</b:tab>
</b:tabbox>
</div>
<div xmlns:s="http://www.backbase.com/s/"
xmlns:b="http://www.backbase.com/b/"
xmlns="http://www.w3.org/1999/xhtml">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="spring" uri="/" %>
<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT"/>
<b:tabbox style="height: 200px;">
<b:tab b:label="Assigned" id="thisAssigned" b:dirty="true" b:on="click"
b:action="load" b:url="/index.cfm?fuseaction=test.assigned" b:destination="id('thisAssigned')">
</b:tab>
<b:tab b:on="click" b:label="Awaiting Approval" id="thisAwaitingApproval" b:state="selected" b:dirty="true"
b:action="load" b:url="/index.cfm?fuseaction=test.awaitingApproval" b:destination="id('thisAwaitingApproval')">
</b:tab>
<b:tab b:label="Completed" id="thisCompleted" b:dirty="true"
b:action="load" b:url="/index.cfm?fuseaction=test.completed" b:destination="id('thisCompleted')">
</b:tab>
<b:tab b:label="Overview" id="thisOverview" b:dirty="true"
b:action="load" b:url="/index.cfm?fuseaction=test.overview" b:destination="id('thisOverview')" >
</b:tab>
<b:tab b:label="OverviewTableV" id="thisOverviewTableV" b:dirty="true"
b:action="load" b:url="/index.cfm?fuseaction=test.overviewTableV" b:destination="id('thisOverviewTableV')" >
</b:tab>
</b:tabbox>
</div>
