Note that there are some explanatory texts on larger screens.

plurals
  1. POissue with css inherit and Ajax
    primarykey
    data
    text
    <p>There is a table <img src="https://i.stack.imgur.com/OhduY.jpg" alt="original state before any selection"> alt text that uses CSS (by using inherit in CSS) to format its layout. As you can see there is a drop down on top of the window that allows us select names, and based on the selection, the table would be populated. This action has been handled by an Ajax call, so we only refresh the table and not the rest of the page. However, when we call this Ajax call, even though we don't have any change in the code, there would be an extra space between vertical and horizontal borders of this table. I assume that there is a problem with the Ajax call and the CSS layout that we have this extra spaces. Does it make sense? or Do you any place that I can start my investigations? <img src="https://i.stack.imgur.com/ogWlM.jpg" alt="After selecting an option in the dropdown"></p> <p>Here is the source code of my Test.jsp</p> <pre><code>&lt;a:test-webpart&gt; &lt;table class="ContentPanel first-child" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;th id="title" class="CPHeader" width="100%" colspan="400" style="border-bottom:1px solid &lt;theme:get selector="#test .DefaultBorder" attribute="border-color" /&gt;;"&gt;&lt;c:out value="${tile_title}" /&gt;&lt;/th&gt; &lt;/tr&gt; &lt;%@ include file="MyTest.jst" %&gt; &lt;tbody class="content-area"&gt; &lt;tr&gt; &lt;td&gt; &lt;table class="ContentPanel ControlLayout" &gt; &lt;tr&gt; &lt;th style="padding-left:7px;" width="20%"&gt;&lt;label for="testlist"&gt;&lt;span &gt;*&lt;/span&gt;&lt;fmt:message key = "jsp.request.testlist" bundle="${local}" /&gt;&lt;/label&gt;&lt;/th&gt; &lt;td class="last-child" width="80%"&gt; &lt;span &gt; &lt;html:select property="valueAsMap(test_ITEM).value(test_OFFER)" styleClass="dropDown" styleId="offeredtest"&gt; &lt;html:optionsCollection property="value(Item_test_LIST)" label = "name" value ="id" /&gt; &lt;/html:select&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th style="padding-left:7px;" width="20%"&gt;&lt;label for="employeeslist"&gt;&lt;span &gt;*&lt;/span&gt;&lt;fmt:message key = "jsp.reques.employeeslist" bundle="${local}" /&gt;&lt;/label&gt;&lt;/th&gt; &lt;td class="last-child" width="80%" &gt; &lt;span &gt; &lt;html:select property="valueAsMap(test_ITEM).value(Item_test_EMP)" onchange="javascript:getAlltests()" styleClass="dropDown" styleId="employeeId"&gt; &lt;html:optionsCollection property="value(Item_test_EMP_LIST)" label = "name" value = "id" /&gt; &lt;/html:select&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;th style="padding-left:7px;" align="left"&gt;&lt;label for="testacceptlist"&gt;&lt;span &gt;*&lt;/span&gt;&lt;fmt:message key = "jsp.request.testacceptlist" bundle="${local}" /&gt;&lt;/label&gt;&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding-left:7px;"&gt; &lt;kvl:rsr-webpart&gt; &lt;div id="testsTable"&gt; &lt;table class="Tabular" width="100%" cellpadding="0" cellSpacing="0"&gt; &lt;tr class="first-child"&gt; &lt;th&gt;&lt;fmt:message key = "jsp.request.select" bundle="${local}" /&gt;&lt;/th&gt; &lt;th &gt;&lt;fmt:message key = "jsp.request.a" bundle="${local}" /&gt;&lt;/th&gt; &lt;th &gt;&lt;fmt:message key = "jsp.request.b" bundle="${local}" /&gt;&lt;/th&gt; &lt;th &gt;&lt;fmt:message key = "jsp.request.c" bundle="${local}" /&gt;&lt;/th&gt; &lt;th &gt;&lt;fmt:message key = "jsp.request.d" bundle="${local}" /&gt;&lt;/th&gt; &lt;th &gt;&lt;fmt:message key = "jsp.request.e" bundle="${local}" /&gt;&lt;/th&gt; &lt;th &gt;&lt;fmt:message key = "jsp.request.f" bundle="${local}" /&gt;&lt;/th&gt; &lt;th class="last-child"&gt;&lt;fmt:message key = "jsp.request.job" bundle="${local}" /&gt;&lt;/th&gt; &lt;/tr&gt; &lt;c:forEach var="item" items = "${items}" varStatus="status"&gt; &lt;tr class="&lt;c:if test='${status.index % 2 != 0}'&gt;Even&lt;/c:if&gt; &lt;c:if test='${item.isFromPrimaryJob == true}'&gt;Primary&lt;/c:if&gt; &lt;c:if test='${item.isFromPrimaryJob != true}'&gt;Exchange&lt;/c:if&gt;"&gt; &lt;td&gt; &lt;input type="checkbox" id="test_id_&lt;c:out value="${item.id}"/&gt;_&lt;c:out value="${item.Date}"/&gt;" name="value(test_selected)" value="&lt;c:out value="${item.id}" /&gt;_&lt;c:out value="${item.Date}"/&gt;" onclick="javascript:checkBox('test_id_&lt;c:out value="${item.id}"/&gt;_&lt;c:out value="${item.Date}"/&gt;','value(test_selected)','valueAsMap(REQUEST_ITEM).value(test_selected_list)','false')" &gt; &lt;/td&gt; &lt;td&gt; &lt;c:choose&gt; &lt;c:when test="${empty item.label}"&gt; &amp;nbsp; &lt;/c:when&gt; &lt;c:otherwise&gt; &lt;c:out value="${item.label}"/&gt; &lt;/c:otherwise&gt; &lt;/c:choose&gt; &lt;/td&gt; &lt;td&gt;&lt;c:out value="${item.Date}"/&gt;&lt;/td&gt; &lt;td&gt;&lt;c:out value="${item.b}"/&gt;&lt;/td&gt; &lt;td&gt;&lt;c:out value="${item.d}"/&gt;&lt;/td&gt; &lt;td&gt;&lt;c:out value="${item.e}"/&gt;&lt;/td&gt; &lt;td&gt;&lt;c:out value="${item.f}"/&gt;&lt;/td&gt; &lt;td class="last-child"&gt;&lt;c:out value="${item.job}"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/c:forEach&gt; &lt;/table&gt; &lt;/div&gt; &lt;/kvl:rsr-webpart&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding-left:7px;"&gt; &lt;table class="ContentPanel ControlLayout" width="100%"&gt; &lt;%@ include file="request.jst" %&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/a:test-webpart&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload