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

  • Home
  • SEARCH
  • 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 3402202
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:06:33+00:00 2026-05-18T05:06:33+00:00

There is a table alt text that uses CSS (by using inherit in CSS)

  • 0

There is a table 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? After selecting an option in the dropdown

Here is the source code of my Test.jsp

<a:test-webpart>

<table class="ContentPanel first-child" cellspacing="0" cellpadding="0">
    <tr>
        <th id="title" class="CPHeader" width="100%" colspan="400" style="border-bottom:1px solid <theme:get selector="#test .DefaultBorder" attribute="border-color" />;"><c:out value="${tile_title}" /></th>
    </tr>
    <%@ include file="MyTest.jst" %>
    <tbody  class="content-area">
    <tr>
        <td>
            <table class="ContentPanel ControlLayout" >
        <tr>
                    <th style="padding-left:7px;" width="20%"><label for="testlist"><span >*</span><fmt:message key = "jsp.request.testlist" bundle="${local}" /></label></th>
                    <td class="last-child" width="80%">
                        <span >
                            <html:select property="valueAsMap(test_ITEM).value(test_OFFER)" styleClass="dropDown" styleId="offeredtest">
                                <html:optionsCollection property="value(Item_test_LIST)" label = "name" value ="id" />
                            </html:select>
                        </span>
                    </td>
                </tr>
                <tr>
              <th style="padding-left:7px;" width="20%"><label for="employeeslist"><span >*</span><fmt:message key = "jsp.reques.employeeslist" bundle="${local}" /></label></th>
                    <td class="last-child" width="80%" >
                        <span >
                            <html:select property="valueAsMap(test_ITEM).value(Item_test_EMP)" onchange="javascript:getAlltests()"  styleClass="dropDown" styleId="employeeId">
                                <html:optionsCollection property="value(Item_test_EMP_LIST)" label = "name" value = "id" />
                            </html:select>
                        </span>
                    </td>
                </tr>
      </table>
    </td>
  </tr>
  <tr>
        <th style="padding-left:7px;" align="left"><label for="testacceptlist"><span >*</span><fmt:message key = "jsp.request.testacceptlist" bundle="${local}" /></label></th>
    </tr>
  <tr>
    <td style="padding-left:7px;">
    <kvl:rsr-webpart>
     <div id="testsTable">
      <table class="Tabular" width="100%"  cellpadding="0" cellSpacing="0">
        <tr class="first-child">
          <th><fmt:message key = "jsp.request.select" bundle="${local}" /></th>
            <th ><fmt:message key = "jsp.request.a" bundle="${local}" /></th>
            <th ><fmt:message key = "jsp.request.b" bundle="${local}" /></th>
            <th ><fmt:message key = "jsp.request.c" bundle="${local}" /></th>
            <th ><fmt:message key = "jsp.request.d" bundle="${local}" /></th>
            <th ><fmt:message key = "jsp.request.e" bundle="${local}" /></th>
            <th ><fmt:message key = "jsp.request.f" bundle="${local}" /></th>
            <th class="last-child"><fmt:message key = "jsp.request.job" bundle="${local}" /></th>
        </tr>

        <c:forEach var="item" items = "${items}"  varStatus="status">       
          <tr class="<c:if test='${status.index % 2 !=  0}'>Even</c:if> <c:if test='${item.isFromPrimaryJob == true}'>Primary</c:if> <c:if test='${item.isFromPrimaryJob != true}'>Exchange</c:if>">
                <td>
                    <input  type="checkbox"
                        id="test_id_<c:out value="${item.id}"/>_<c:out value="${item.Date}"/>"
                        name="value(test_selected)" 
                        value="<c:out value="${item.id}" />_<c:out value="${item.Date}"/>" 
                        onclick="javascript:checkBox('test_id_<c:out value="${item.id}"/>_<c:out value="${item.Date}"/>','value(test_selected)','valueAsMap(REQUEST_ITEM).value(test_selected_list)','false')" >
                </td>
                <td>
                    <c:choose>
                            <c:when test="${empty item.label}">
                        &nbsp;
                    </c:when>
                    <c:otherwise>
                        <c:out value="${item.label}"/>
                    </c:otherwise>
                    </c:choose>
                </td>
                <td><c:out value="${item.Date}"/></td>
                <td><c:out value="${item.b}"/></td>
                <td><c:out value="${item.d}"/></td>
                <td><c:out value="${item.e}"/></td>
                <td><c:out value="${item.f}"/></td>
                <td class="last-child"><c:out value="${item.job}"/></td>
            </tr>
        </c:forEach>
        </table>
        </div>
      </kvl:rsr-webpart>
    </td>
  </tr>
  <tr>
        <td style="padding-left:7px;">
            <table class="ContentPanel ControlLayout" width="100%">
          <%@ include file="request.jst" %>
       </table>
     </td> 
   </tr>      
  </tbody>
</table>
</a:test-webpart>
  • 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-05-18T05:06:33+00:00Added an answer on May 18, 2026 at 5:06 am

    Later on I figured out that the problem has nothing to do with the any Ajax rendering. It was the return HTML tag that had these extra padding as it was inheriting its layout from another place. I enforced my padding and borderline along with cells that I was sending from server and everything worked like a charm.

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

Sidebar

Related Questions

No related questions found

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.