Table Row Alignment

Hi,
I have a problem with a row in a table that doesn't align
correctly, When i view the page in Design View, it is displayed
correctly, but when i preview the page the row seems to have
stretched.
Thanks in advance
Attached Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Fat Tom Dedicated Kite Surfing
Website</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:149px;
height:209px;
z-index:1;
top: 48px;
left: 676px;
#Layer2 {
position:absolute;
width:94px;
height:113px;
z-index:1;
top: 143px;
left: 711px;
#Layer3 {
position:absolute;
width:127px;
height:169px;
z-index:1;
top: 119px;
#Layer4 {
position:absolute;
width:104px;
height:46px;
z-index:1;
left: 716px;
top: 272px;
-->
</style>
</head>
<body link="#000099" vlink="#FFFF66">
<table width="576" border="0" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td height="257" colspan="2" rowspan="2"
bgcolor="#1C4680"><img src="Images/FatTom_Top_Right Main
New.jpg" alt="Fat Tom" width="469" height="302" /></td>
<td width="110" height="94"
bgcolor="#1C4680"> </td>
</tr>
<tr>
<td bgcolor="#D3E7E8"> </td>
</tr>
<tr>
<td width="6" height="406"> </td>
<td width="463"
bgcolor="#D3E7E8"> </td>
<td bgcolor="#D3E7E8"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td height="31" colspan="2" bgcolor="#1C4680"><div
align="center"><em>Pad | Shots | Chat | Contact |
</em></div></td>
</tr>
</table>
<p> </p>
</body>
</html>

After looking at my problem in more detail, I can see that my complex renderers do impart a non-trivial drag on performance. I am looking into improving them, but I may only get so far, and the tables can be large.
My typical table has ~3 row header columns, and dozens of data table columns. Tables containin 10,000 rows are not uncommon. Several columns may use a special 3rd-party chemical structure renderer which can take up to 75% of the overall rendering time when I scroll the table (I have looked at this under OptimizeIt). The rowHeader JTable will definitely contain one of these special renderers. Each column in the table has it's own TableCellRenderer instance.
My problem is that under vertical scrolling, the rowHeader JTable tends to lag the main data JTable until the scrolling stops, and then it will catch up and align correctly.
I can accept diminished vertical scrolling on the whole, because I am doing a lot of drawing into the table cells. I cannot accept this mis-alignment during vertical scrolling, however.
Based on what I am seeing, I am under the impression that Java renders each JComponent individually to the offscreen buffer, then before going on to render the next JComponent, it will BitBLT the rerendered JComponent to the screen. This can explain why I see this lag. Is this indeed true, though?
So, I need more info on understanding the intricacies of JTable rendering - I would be grateful for any assistance in this matter...
thanks,
jpl

Similar Messages

  • DW CS3 Unexpected table row growth.

    upgraded to CS3 from DW8, DWMX and found the following
    problem with my pages.
    I should say with the way they display in DW CS3.
    The problem is that the row expands in design view to
    accommodate the variable names, unlike previous prevouse versions
    that display the table at its true size.
    In this example:
    <td colspan="2" class="smallbutton"><div
    align="left">
    <%=(KT_escapeAttribute(rsPub_Participant.Fields.Item("sFName").Value))%> 
    <%=(KT_escapeAttribute(rsPub_Participant.Fields.Item("sMName").Value))%> 
    <%=(KT_escapeAttribute(rsPub_Participant.Fields.Item("sLName").Value))%></div>
    </td>
    Under older versions the table row will not grow to
    accommodate each of the fields. But in DW CS3 it does making it
    difficult to design a page.
    Question: How can I turn this off "fix it"?
    Thanks
    Mark this message as the answer.

    In Preferences > Invisible Elements, set "Show dynamic
    text as" to "{}"
    HTH,
    Randy
    > The problem is that the row expands in design view to
    accommodate the variable
    > names, unlike previous prevouse versions that display
    the table at its true
    > size.
    >
    > In this example:
    > <td colspan="2" class="smallbutton"><div
    align="left">
    >
    <%=(KT_escapeAttribute(rsPub_Participant.Fields.Item("sFName").Value))%> 
    >
    <%=(KT_escapeAttribute(rsPub_Participant.Fields.Item("sMName").Value))%> 
    >
    <%=(KT_escapeAttribute(rsPub_Participant.Fields.Item("sLName").Value))%></div>
    > </td>
    >
    > Under older versions the table row will not grow to
    accommodate each of the
    > fields. But in DW CS3 it does making it difficult to
    design a page.
    >
    > Question: How can I turn this off "fix it"?

  • Table Rows with Multiple Conditions Not Showing Up in RH

    Hi everyone,
    I'm currently evaluating TCS2 (Framemaker 9 and RoboHelp 8 on Windows XP) and have come across the following issue:
    One of our FrameMaker source files contains a table in which one of the rows has multiple conditions applied. When one of the conditions is shown in Framemaker, and the others are hidden, the row is displayed in Framemaker as expected. However, when the file is then imported or linked into Robohelp, the same table row vanishes, even though the Apply FrameMaker Conditional Text Build Expression check box is selected in the Framemaker Conversion Settings > Other Settings screen. This only appears to affect table rows - when paragraph text is tagged with the same conditions, it is imported correctly into RoboHelp.
    For example, when Condition B is shown and Condition A is hidden in the Framemaker file, the content appears like this in Frame:
    Unconditional
    Unconditional
    Condition A and Condition B applied
    Condition A and Condition B applied
    Condition B applied
    Condition B applied
    Paragraph text with Condition A and Condition B applied.
    Paragraph text with Condition B applied.
    When the same file is imported into RoboHelp, the row with both conditions applied is absent from the table:
    Unconditional
    Unconditional
    Condition B applied
    Condition B applied
    Paragraph text with Condition A and Condition B applied.
    Paragraph text with Condition B applied.
    Installing patches 8.0.1 and 8.0.2 did not resolve the issue (and actually caused other, unrelated issues) and I see the same behavior regardless of whether I import or link the FrameMaker document.
    Has anyone else seen this issue? Any help would be much appreciated.
    Thanks
    DaveB

    It just seems that the items I select as align to top in the
    property inspector should force the items to the top of their
    cells, unless I'm missing something.

  • Ajx problem with jsp .not able to show  ajax response data in table rows

    hi evryone
    i m new to ajax .i m not able solve this problem .pls help if anyone understood my problem
    probelm scenario is like this:
    take a example of shopping page where a field amount changes every time (time interval) ,the amount data is coming from database .ok...
    this i m trying to do with ajax and want to display the value in table rows one by one ..but response whihc i m getting is different .....same value is diaplying in evry rows .which i dont want
    the output it coming now is:like this
    item amount
    item 1 20
    item2 20
    item 3 20
    i want like thi s
    item amount
    item 1 20
    item2 30
    item 3 40
    even in database the value is 20,30,40
    here is the code of two jsp page
    one is ajaxitem_amount.jsp
    <%
    try
    stmt3 = con.createStatement();
    String itemQ="select item_ref_id,quantity from item_master where shop_ref_id="+shopid+" and (status is null or status<>'w') order by item_ref_id";
    //out.println(railQ);
    rs_details=stmt3.executeQuery(itemQ);
    while(rs_details.next())
    item2 = rs_details.getInt("ITEM_REF_ID");
    v.add(new Integer(item2));
    String aString = Integer.toString(item2);
    itemids.add(aString);
    Enumeration enum = v.elements();
    for (j=0; j<v.size(); j++)
    //out.println("v[" + j + "] = " + v.elementAt(j));
    sql3="select max(shop_amount) from shop_floor_temp where item_ref_id="+v.elementAt(j);
    rs_bid=stmt3.executeQuery(sql3);
    if(rs_price.next())
    last_price=rs_price.getDouble(1);
    if(last_price != 0)
    lprice= last_price;
    else
    lprice=1;
    out.print("<response>");
    out.print(lprice+"|");
    out.print("</response>");
    out.print("\n");
    catch(Exception ex)
    out.print("ERROR"+ex);
    // out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    _another is main shopping
    <td bgcolor="#C5B9AB" width="10%" align="center">
    <strong><font face="Verdana" size="2">Last price</font></strong>
    int tabrowcounter=0;
    while(rs_details.next())//some query
    tabrowcounter++;
    //*some more data is displayed here one by one all are working instead of this which i am calling from another page ajaxitem_amount.jsp page*
    <td bgcolor='<%=colorjava%>' width="50%" align="center">
    <div id="responseimage<%=tabrowcounter%>"></div>
    <div id="responseOutput<%=tabrowcounter%>"></div>
    <SCRIPT LANGUAGE="JavaScript">
    function createXHR<%=tabrowcounter%>()
    try { return new XMLHttpRequest(); } catch(e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
    alert("XMLHttpRequest not supported");
    return null;
    function sendRequest<%=tabrowcounter%>()
    document.getElementById('responseimage<%=tabrowcounter%>').innerHTML ="<IMG SRC='load.gif'> ";
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'block';
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'none'
    var url="ajaxauct_floor.jsp";
    var xhr = createXHR<%=tabrowcounter%>();
    if (xhr)
    xhr.open("get",url,true);
    xhr.onreadystatechange = function()
    handleResponse<%=tabrowcounter%>(xhr);
    xhr.send(null);
    function handleResponse<%=tabrowcounter%>(xhr)
    if (xhr.readyState == 4 && xhr.status == 200)
    try
    var data = xhr.responseText.split("|");
    //document.write(data);
    //updatePage<%=tabrowcounter%>(xhr.responseText);
    //document.write(xhr.responseText);
    setTimeout('sendRequest<%=tabrowcounter%>()',10000);
    for(var x=0;x<data.length-1;x++)
    //alert(data);
    document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[x];
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'none'; // HIDE
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'block'
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    catch(e)
    alert('1 '+e)
    sendRequest<%=tabrowcounter%>();
    </SCRIPT>
    </td>
    </tr></table>
    if anyone have understood my problem pls help me .i have tried lot but not working .anyone genius here ?thnak you

    thanks baluc
    thanks for correcting me and giving me a good advice .anyway i m trying make you understand once again ...
    if you have understood this time please do reply .else i m sorry for placing wrong question ....
    hi everyone
    I m new to Ajax .I m not able solve this problem .pals help if anyone understood my problem
    problem scenario is like this:
    take a example of shopping page where a field amount changes every time (time interval) ,the amount field* (this data is coming from database )
    this I m trying to do with Ajax and want to display the value in table rows one by one ..But response which I m getting is different.....same value is displaying in every rows .which I don't want
    The output it coming now is: like this
    item amount
    item 1 20
    item2 20
    item 3 20
    I want like this s
    item amount
    item 1 20
    item2 30
    item 3 40
    even in database the value is 20,30,40
    here is the code of jsp page
    one page is ajaxitemamount.jsp_*
    <%
    try
    stmt3 = con.createStatement();
    String itemQ="select item_ref_id,quantity from item_master where shop_ref_id="+shopid+" and (status is null or status<>'w') order by item_ref_id";
    //out.println(railQ);
    rs_details=stmt3.executeQuery(itemQ);
    while(rs_details.next())
    item2 = rs_details.getInt("ITEM_REF_ID");
    v.add(new Integer(item2));
    String aString = Integer.toString(item2);
    itemids.add(aString);
    Enumeration enum = v.elements();
    for (j=0; j<v.size(); j++)
    //out.println("v[" + j + "] = " + v.elementAt(j));
    sql3="select max(shop_amount) from shop_floor_temp where item_ref_id="+v.elementAt(j);
    rs_bid=stmt3.executeQuery(sql3);
    if(rs_price.next())
    last_price=rs_price.getDouble(1);
    if(last_price != 0)
    lprice= last_price;
    else
    lprice=1;
    out.print("<response>");
    out.print(lprice+"|");
    out.print("</response>");
    out.print("\n");
    catch(Exception ex)
    out.print("ERROR"+ex);
    // out.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    another is main shopping page page 2*
    <td bgcolor="#C5B9AB" width="10%" align="center">
    <strong><font face="Verdana" size="2">Last price</font></strong>
    int tabrowcounter=0;
    while(rs_details.next())//some query
    tabrowcounter++;
    <td bgcolor='<%=colorjava%>' width="50%" align="center">
    <div id="responseimage<%=tabrowcounter%>"></div>
    <div id="responseOutput<%=tabrowcounter%>"></div>
    <SCRIPT LANGUAGE="JavaScript">
    function createXHR<%=tabrowcounter%>()
    try { return new XMLHttpRequest(); } catch(e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
    alert("XMLHttpRequest not supported");
    return null;
    function sendRequest<%=tabrowcounter%>()
    document.getElementById('responseimage<%=tabrowcounter%>').innerHTML ="<IMG SRC='load.gif'> ";
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'block';
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'none'
    var url="ajaxauct_floor.jsp";
    var xhr = createXHR<%=tabrowcounter%>();
    if (xhr)
    xhr.open("get",url,true);
    xhr.onreadystatechange = function()
    handleResponse<%=tabrowcounter%>(xhr);
    xhr.send(null);
    function handleResponse<%=tabrowcounter%>(xhr)
    if (xhr.readyState == 4 && xhr.status == 200)
    try
    var data = xhr.responseText.split("|");
    //document.write(data);
    //updatePage<%=tabrowcounter%>(xhr.responseText);
    //document.write(xhr.responseText);
    setTimeout('sendRequest<%=tabrowcounter%>()',10000);
    for(var x=0;x<data.length-1;x++)
    //alert(data);
    document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[x];
    document.getElementById('responseimage<%=tabrowcounter%>').style.display = 'none'; // HIDE
    document.getElementById('responseOutput<%=tabrowcounter%>').style.display = 'block'
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    //document.getElementById('responseOutput<%=tabrowcounter%>').innerHTML = data[0];
    catch(e)
    alert('1 '+e)
    sendRequest<%=tabrowcounter%>();
    </SCRIPT>
    </td>
    </tr></table>
    if anyone have understood my problem please help me .i have tried lot but not working .anyone genius here ?thank you

  • CSS issue when changing the table row height to 16px

    Hello,
    After changing the table row height through css like this:
    .table-row-cell, .table-cell {
    -fx-cell-size: 16;
    the table rows are correctly displayed with a 16px height but the cell bottoms seem to be incorrectly set.
    For example the following css style (a red 3px bottom border):
    .table-cell {
    -fx-border-width: 0 0 3 0;
    -fx-border-color: red;
    doesn't work anymore with the new row height whereas it works with the 24px standard row height.
    While investigating with Scenic View, I noticed that changing the row height changes the TableRow layoutBounds height (from 24px to 16px so that's ok) but not the boundsInParent height which remains to 27px. I think it should become 19px (16 + 1.5 + 1.5). I don't know if it's a bug.
    Anyway, any help making the css red border working for a 16px row height would be greatly appreciated.
    Regards,
    Bruno.

    Q: Would this help to just use absolute div tags and give me 'ABSOLUTELY ABSOLUTE' positioning?
    No.  APDivs are not a good primary layout method.  Use default CSS positioning (which is no positioning at all).  Align page elements with margins, floats and padding.
    See example -- 2-Column CSS Layout with Grids
    (View Page Source in your browser to see the code)
    http://alt-web.com/TEMPLATES/2-col-fixed-with-grid.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Table row height larger in firefox

    My table rows 1,3 &5 have a height that is 2x bigger FF
    than it should be. IE7 is perferct. Also, the font is the same size
    in both browsers. Any suggestions are greatly appreciated.
    http://www.wholesalebingosupplies.com/bingo-game-kits.html
    main div code:

    Thank Tim.
    I added
    p {margin: 2px;}
    to my CSS and that fixed the larger top rows to my tables but
    that did not change the margin to my very bottom row and my footer
    <div> which is too close.
    http://www.wholesalebingosupplies.com/family-gatherings.html
    Any suggestions?
    I am reviewing the site that you requested to fix my
    different users text size. Thanks for that insight.
    John
    quote:
    Originally posted by:
    Newsgroup User
    Hello,
    Different browsers use different default margins for certain
    tags if you
    don't define a margin using CSS.
    One of these tags is the <p> tag. Your links are in
    them, with no margin
    defined.
    <p><strong><a
    href="kit-mini.html">Mini-Bingo
    Kit</a></strong></p>
    Add this to your CSS:
    p {margin: 2px;}
    I'm afraid this isn't the only problem.
    Take a look at the page in FF with the browser's text size
    setting at 1
    level larger than what you have been using.
    ( ctrl+ + to enlarge )
    Here's a screen shot:
    http://tnsgraphics.com/tempscreenshot.htm
    Here's info on the trouble (see "The Problem with Layers")
    http://apptools.com/examples/pagelayout101.php
    Take care,
    Tim
    "Ehd24" <[email protected]> wrote in message
    news:[email protected]...
    > My table rows 1,3 &5 have a height that is 2x bigger
    FF than it should be.
    > IE7
    > is perferct. Also, the font is the same size in both
    browsers. Any
    > suggestions
    > are greatly appreciated.
    >
    >
    http://www.wholesalebingosupplies.com/bingo-game-kits.html
    >
    > main div code:
    >
    >
    >
    > <div id="main-content" align="left">
    > <div class="scrollerArea">
    > <h1>Bingo Game Kits </h1>
    > <p class="style1">We offer a variety of bingo game
    kits for whatever
    > your needs and size of your party. ? </p>
    > <table width="500" border="1" cellpadding="5"
    align="center">
    > <tr bgcolor="#F58030">
    > <th scope="col"><div align="center">
    > <p><strong><a
    > href="kit-mini.html">Mini-Bingo
    Kit</a></strong></p>
    > </div></th>
    > <th scope="col"><div align="center"><a
    > href="kit-gold.html">Gold Bingo
    Kit</a></div></th>
    > </tr>
    > <tr>
    > <th scope="col"><div align="center"
    > class="style2">
    > <div align="center"></div>
    > <div align="center"><a
    > href="kit-mini.html"><img
    src="images/kits/mini-bingo-kit-small-bingo.jpg"
    > width="250" height="188" /></a></div>
    > </div></th>
    > <td><div align="center"><a
    > href="kit-gold.html"><img
    src="images/kits/gold-bingo-kit-small-bingo.jpg"
    > width="250" height="187"
    /></a></div></td>
    > </tr>
    > </table>
    > <table width="500" border="1" cellpadding="5"
    align="center">
    > <tr bgcolor="#F58030">
    > <th scope="col"><div align="center">
    > <p><strong><a
    > href="kit-platinum.html">Platinum Bingo
    Kit</a></strong></p></div></th>
    > <th scope="col"><div align="center">
    > <p><strong><a
    > href="kit-gold-professional.html">Gold Professional
    Bingo
    > Kit</a></strong></a></p>
    > </div></th>
    > </tr>
    > <tr>
    > <th height="203" scope="col"><div
    > align="center"
    > class="style2">
    > <div align="center"><a
    > href="kit-platinum.html"><img
    > src="images/kits/platinum-bingo-kit-small-bingo.jpg"
    width="250"
    > height="188"
    > border="0" /></a></div>
    > <div align="center"></div>
    > </div></th>
    > <td><div align="center"><a
    > href="kit-gold-professional.html"><img
    > src="images/kits/gold-professional.jpg"
    > width="250" height="190"
    /></a></div></td>
    > </tr>
    > </table>
    > <table width="250" border="1" cellpadding="5"
    align="left">
    > <tr bgcolor="#F58030">
    > <th bgcolor="#F58030" scope="col"> <p
    > align="center"><strong><a
    >
    href="kit-gold-professional.html"></a></strong><strong><a
    > href="kit-platinum-professional.html">Platinum
    Professional Bingo
    > Kit</a></strong></p></th>
    > </tr>
    > <tr>
    > <td><div align="center"><a
    > href="kit-platinum-professional.html"><img
    > src="images/kits/platinum-professional.jpg" alt=""
    width="250"
    > height="190"
    > /></a></div></td>
    > </tr>
    > </table>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > <p> </p>
    > </div>
    > </div>
    >
    > <!-- End main-content -->
    >

  • Retrieve table row length

    The 'Add' button lets the user dynamically add/remove of table rows.
    I tried passing the value using hidden field but failed. How can I pass the table # of rows back to the servlet, and I also have problems getting the value from the new row created by the script. Please enlighten ASAP!
          <script language="JavaScript" type="text/javascript">
            function addRowToTable()
            var tbl = document.getElementById('albumDetailsTbl');
            var lastRow = tbl.rows.length;
            var iteration = lastRow;
            var row = tbl.insertRow(lastRow);
            // SN cell
            var cellLeft = row.insertCell(0);
            var textNode = document.createTextNode(iteration);
            cellLeft.appendChild(textNode);
            // Song Title cell
            var songTitle = row.insertCell(1);
            var el = document.createElement('input');
            el.setAttribute('type', 'text');
            el.setAttribute('name', 'songTitle_' + iteration);
            el.setAttribute('id', 'songTitle_' + iteration);
            el.setAttribute('width', '150');
            songTitle.appendChild(el);
            // Composer cell
            var composer = row.insertCell(2);
            var el = document.createElement('input');
            el.setAttribute('type', 'text');
            el.setAttribute('name', 'composer_' + iteration);
            el.setAttribute('id', 'composer_' + iteration);
            el.setAttribute('width', '150');
            composer.appendChild(el);
            // Lyricist cell
            var lyricist = row.insertCell(3);
            var el = document.createElement('input');
            el.setAttribute('type', 'text');
            el.setAttribute('name', 'lyricist_' + iteration);
            el.setAttribute('id', 'lyricist_' + iteration);
            el.setAttribute('width', '150');
            lyricist.appendChild(el);
            // Artist cell
            var artist = row.insertCell(4);
            var el = document.createElement('input');
            el.setAttribute('type', 'text');
            el.setAttribute('name', 'artist_' + iteration);
            el.setAttribute('id', 'artist_' + iteration);
            el.setAttribute('width', '150');
            artist.appendChild(el);
          </script>
        <form name="CreateAlbum_frm" method="post" action="/albumServlet">
          <input type="button" value="Add" onclick="addRowToTable();" />
            <table width="68%" border="1" align="center" cellpadding="1" cellspacing="1" id="albumDetailsTbl">
              <tr>
                <td width="29"><div align="center" class="style4 style2"><strong>SN</strong></div></td>
                <td width="150"><div align="center" class="style5 style2"><strong>Song Title </strong></div></td>
                <td width="150"><div align="center" class="style5 style2"><strong>Composer</strong></div></td>
                <td width="150"><div align="center" class="style5 style2"><strong>Lyricist</strong></div></td>
                <td width="150"><div align="center" class="style2 style5"><strong>Artist</strong></div></td>
              </tr>
              <tr>
                <td width="29"><div align="center">01</div></td>
                <td><input name="songTitle_0" type="text" id="songTitle_0"></td>
                <td><input name="composer_0" type="text" id="composer_0"></td>
                <td><input name="lyricist_0" type="text" id="lyricist_0"></td>
                <td><input name="artist_0" type="text" id="artist_0"></td>
              </tr>
            </table>
            <p align="center"></p>
            <table width="664"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="189"><div align="center"></div></td>
                <td width="41">�</td>
                <td width="106"><input type="reset" name="Reset" value="Clear All"></td>
                <td width="13"><div align="center"></div></td>
                <td width="158"><div align="center"><input name="createSave_jBut" type="submit" id="createSave_jBut" value="Create Album & Save"></div></td>
                <td width="157">�</td>
              </tr>
            </table>
          <p><input name="rowCount" type="hidden" value= albumDetailsTbl.rows.length /></p>
          </form>

    in my experience, you have to write a hack that goes something like this:
    declare int to hold number of rows
    do db search
    move cursor to last row (i forget the function call name, but you can find it)
    call getRow() or something to get the row number the cursor is on
    then you call findFirst or getFirst or sometihng to go back to start

  • Table row

    I have a table row that I am using for a Nav Bar, you know -
    Home, Contact, ectetera. I cannot get the darn thing to make the
    cells all a consistent width. What is the trick?

    On Thu, 22 Mar 2007 09:43:35 -0700, Randy Edmunds
    <[email protected]> wrote:
    >Table cells stretch to fit their content, so you'll need
    to do this:
    >
    >1. Give all cells the same width
    >2. Give table a total width equal to the sum of all cell
    widths
    >3. Make sure that none of the cells has content that
    exceeds that width
    >
    >HTH,
    >Randy
    >
    >> I have a table row that I am using for a Nav Bar,
    you know - Home, Contact, ectetera. I cannot get the darn thing to
    make the cells all a consistent width. What is the trick?
    does this help ?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style>
    .table1 { background-color:#FFFF66; text-align:center;
    font-weight:bold; }
    </style>
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0"
    cellpadding="0"
    class="table1">
    <tr>
    <td width="20%">One </td>
    <td width="20%">Two</td>
    <td width="20%">Three</td>
    <td width="20%">Four</td>
    <td width="20%">Five</td>
    </tr>
    </table>
    </body>
    </html>
    ~Malcolm N....
    ~

  • View a single table-row as multiple rows in a GridControl

    Hi,
    is it possible to distribute the entries of a single row of a table/RowSetInfo over multiple lines of a GridControl?
    I've seen an example on the Internet (http://www2.gol.com/users/tame/swing/examples/JTableExamples4.html) which does this without database connection but it seems as if it's necessary to replace the default JTable, TableModel and UI by customized ones. As far as I've seen it's not possible to replace the JTable which is used by a GridControl? So is there any other way to do this? (A modification of the JTable-UI itself doesn't suffice as the JTable yields wrong row- and column-numbers on mousclick-events and therefore the components of the second row are not enabled properly).
    Thanks in advance
    null

    |I've seen an example on the Internet |(http://www2.gol.com/users/tame/swing/exampl|es/JTableExamples4.html) which does this |without database connection but it seems as |if it's necessary to replace the default |JTable, TableModel and UI by customized |ones.
    You wont be able to replace the JTable. But you can change all the attributes on the internal table which the grid uses (see getTable() method). The datamodel for the grid is impemented by oracle.dacf.control.swing.GridDataSource. You can possibly extend this class. You can also change the Table column model and the renderers used by the Table.
    |So is there any other way to do this? (A |modification of the JTable-UI itself doesn't |suffice as the JTable yields wrong row- and |column-numbers on mousclick-events and |therefore the components of the second row |are not enabled properly).
    Could you expain how the mapping between cell renderer and the table (row, col) is done in the extended JTable - which class ?.
    (http://www2.gol.com/users/tame/swing/exampl|es/JTableExamples4.html)
    null

  • Opening a new view in a new window on click of a table row entry.

    Hi Guys,
    How to open a new View of a same application in a new window (just like a pop up) on a click of a Table Row entry?
    I am using NWDS 7.0 version. So please suggest acccorrdingly.

    Hi Nikesh,
    first of all you will have to declare use of onLeadSelect event handler for your table (note that it will only be triggered when a lead selection occurs not a multiselection).
    Also, you can build at design time a View and a Window (for example, PopupWin) in your WebDynpro Component, and embed the view into the window.
    In your code for onLeadSelect function, you can use something like this to pop up the window.
    public void onActionRowSelection(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSeleccionTabla(ServerEvent)
        IWDWindowManager windowManager = wdComponentAPI.getWindowManager();
        IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopupWin");
        IWDWindow window = windowManager.createModalWindow(windowInfo);
        window.setWindowPosition(WDWindowPos.CENTER);
        window.setWindowSize(new WDCssSize(450, WDWindowUnitOfLength.PX) , WDCssSize.UNDEFINED);
        // Store handle ti window in context attribute to able to close it later
        wdContext.currentContextElement().setPopup(window);
        window.show();
        //@@end
    Hope it helps,
    David

  • How to pass hidden field values on a click of a table row

    hi all,
    href = "bookAndNonBook.do"
    I am very new to struts. I have created a table using displaytable tag which displays results in a tabular format. In addtion, i have a hidden field (prodType), the table rows are getting highlighted when i get my mouse on a particular row.
    Following is the code from the results.jsp file
    <body
    onload="addRowHandlers('row', 'rowMouseOver')"
    bgcolor="#FFFFFF" text="#000000" leftmargin="100" topmargin="50"
    marginwidth="" marginheight="" rightmargin="30">
    <html:form action="/bookAndNonBook" method="post">
    <display:table name="sessionScope.productSearchList" id="row"
    sort="list" export="true" defaultsort="1" defaultorder="ascending"
    pagesize="15" decorator="org.displaytag.decorator.TotalTableDecorator"
    class="dataTable">
    <display:column property="prodType" title="ProdType" class="prodType"
    headerClass="prodType" media="html" />
    <display:column title="Title" property="titleName" sortable="true"
    class="title" headerClass="title" />
    </display:table>
    </html:form>
    </BODY>
    I am calling a funtion addRowHandlers which passes the table id (which is row) and the rowMouseover for highlighting the rows on mouse over.
    the code for function addRowHandlers is
    function addRowHandlers(tableId, rowClassName) {
    var previousClass = null;
    var table = document.getElementById(tableId);
    var rows = table.getElementsByTagName("tr");
    for (i = 1; i < rows.length; i++) {
    rows.onmouseover = function () {
    previousClass = this.className;
    this.className = this.className + " " + rowClassName ;
    this.style.cursor="hand";
    rows.onmouseout = function () {
    this.className = previousClass;
    this.style.cursor='';
    rows.onclick = function (){
    var cell = this.getElementsByTagName("td")[0];
    var ProdType = cell.innerHTML;
    alert("value of prodType = " + ProdType);
    when i run the above code and click on a particular row it returns me the value in the hidden field i.e. prodType for that particular row
    Now where i am having problem is i want that on the basis of prodType my jsp file should call different actions for different prodType as returned....somwhat a function like this
    function submitProduct(prodType) {
    if(prodType == "BK")
    resultsForm.action = "/bookProduct.do";
    else if(prodType == "NB")
    resultsForm.action = "/nonbookProduct.do";
    but i am unable to figure out that how do i this..
    Any help will be really appreciated
    Thanks
    Sam

    can you please suggest some good struts forums where i can post my question
    thanks in advance
    Sam

  • Table.rows.find() returns null in a table where the row exists.

    Hi...
    I am working in a Project in Visual Studio 2013 where I have to read an Excel report related with a list of business opportunities. Some of the Fields that are involved in it are:  Opportunity ID, BU, Account, close date, Account Manager,
    Total Value and so on. As soon as I get the conection with the Excel Report, I fill a DataTable and declare the columns [Opportunity ID] and [BU] as my Primary Keys.  In that way, an Opportunity value may have one o more rows
    with different BU code each of them.  In consequence, you can define one row in the table if you specify the [Opportunity ID] and the [BU] values.
    My problem starts when I try to get information of those rows that have an specific value of [Opportunity ID]. For that situation I make a "foreach" structure where I check the BU codes that are involved with that Opportunity. So
    I use the Find() Method to get the information of the row specified by the Opportunity ID and BU.  The first time it goes to find the information it gets the results successfully but in the next cycle changing just the [BU] using the same [Opportunity
    ID] value, the find() method returns a "null" and I do not know why because I am sure that the row exists in the table.  I have verified the "Unique" property for the  [Opportunity ID] and [BU] columns (which are
    my primary keys)  and they are in false which is OK.
    I share the code that I am using...
    Hope someone can help.
    Thanks.
    Alfmar.
    void ObtenTotalesxBUs(string Opportunity, string[] BUs, Object[] TotalBUs, Object[] ExpTotalBUs)
    ArrayList TotalesBUs = new ArrayList(); //Required information from the row.
    ArrayList ExpTotalesBUs = new ArrayList(); //Required information from the row.
    foreach(string businessUnit in BUs)
    Object[] LlaveBusqueda = { Opportunity, businessUnit }; //Provide values to the Primary Keys.
    DataRow RenglonInfo = null;
    RenglonInfo = TablaFunnel.Tabla.Rows.Find(LlaveBusqueda); //Find method receives the Primary Keys values. Here is where I have a "null" in return the second time changing just the [BU] field.
    TotalesBUs.Add(RenglonInfo["Total"]); //Get the required information from the row.
    ExpTotalesBUs.Add(RenglonInfo["Expected Total Value"]); //Get the required information from the row.
    TotalBUs = TotalesBUs.ToArray();
    ExpTotalBUs = ExpTotalesBUs.ToArray();}

    Hi Viorel..
    Thanks a lot for you help.
    I am absolutely sure that the second ítem of BU is valid and exist in the table because I tried to make a "Select" statement in the table providing the values of [Opportunity ID] and [BU] and I get the expected record. So, why is not
    working using Find() with the defined Primary Keys??? 
    I tried this in order to test that the record exists...
    if(RenglonInfo == null)
    string strSelect = "[Opportunity ID] = '0000218256' AND [BU] = 'SFW'";
    RenglonInfo2 = TablaFunnel.Tabla.Select(strSelect);

  • Check for empty table row before adding date

    On the form below, when I click the green + button (far right), a new table row is created with today's date. the user can then enter more text to the right of the date. Problem is when the form is saved and reopened, the text the user enters is deleted and new today's date added because it is in the intialize event. How do I script to check and make sure each dated row is empty before adding today's date?
    https://acrobat.com/#d=qTINfyoXA-U6cDxOGgcSEw
    Thanks,
    ~Don

    Hi Don,
    One option would be to use the caption area of the textfield for the date and leave the value portion free for the user to input their data:
    if (xfa.resolveNode("this.caption.value.#text").value === "") {
              this.caption.value.text = util.printd("[mm/dd/yy] ", new Date() );
    See here: https://acrobat.com/#d=VjJ-YsXLKmV6QU84JrAAIw.
    Hope that helps,
    Niall

  • Pl/sql table - row type records

    Hi,
    Is there any limit on the number of records that a pl/sql table (row type) can accomodate.Iam using oracle 10g

    user11200499 wrote:
    I have gone thru that url, nothing on the maximum number of records that can be present in pl/sql table is given there. Will be very helpful if you can let me know if there is any such limitation.There is no such thing as a PL/SQL "+table+". A table, in Oracle terminology, means colums and rows and indexes and the ability to scale data, effectively read and process and filter and aggregate data.
    A so-called PL/SQL "+table+" is nothing at all like this.
    The correct term for it, and used in all other programming languages, are arrays (procedural term) and collections (object orientated term).
    An array/collection is a local memory structure in the unit of code. In PL/SQL, that means PGA (process global area) memory. And as this uses server memory, you should not abuse it and only use as much that is truly needed.
    Make a PL/SQL array/collection too large, and PGA grows.. and can have a very negative impact on performance. It can even cause the server to crawl to halt, where you will struggle to enter a commandline command on the server as it is spending 99% of CPU time trying to deal with memory requests and page swapping.
    So what do we then use arrays/collections for in PL/SQL?
    For the very same reason we use in any other programming language - dealing with managing local programming data in a more effective memory structure. Such as bulk processing when requiring a buffer variable that can be passed to and from the PL and SQL engines.
    This does NOT mean using it as you would use it as if it is a SQL table. As it is not.
    So to answer your question of how large a PL/SQL array or collection can be? That depends entirely on the problem you are trying to solve. If it is for example bulk processing, then typically a collection of a 100 rows provides the best balance between the amount of (expensive) PGA memory being used versus the increase in performance by reducing context switching between the PL and SQL engines.
    If the rows are quite small, perhaps even a 1,000 row collection. More than that seldom decreases context switching enough to justify the increase in expensive PGA.
    So what should then be used to store larger data structures in PL/SQL? GTT or Global Temporary Tables. As this is a proper SQL table structure. Can be indexed. Natively supports SQL. Can scale with data volumes.
    And most importantly, it does not consume dedicated process memory and will not blow server memory.

  • Report Generation Toolkit Table Row Height-MS Word

    I am having trouble setting the table row height in the report generation toolkit. I can set the column width fine, but the row height seems to remain the same no matter what I set it to. I have attached the VI that generates and formats the table, and the printout it is resulting in. I have also attached the template file I am using.
    Any tips to get this to work right? I am trying to make the cells exactly the same height as the text inside. 
    Solved!
    Go to Solution.
    Attachments:
    AddMarkersToReport.vi ‏20 KB
    badFormatting.pdf ‏179 KB
    splitter.docx ‏13 KB

    Hi,
    So I tried .2  and it didn't work.  So I went to Word to manually change it, and it did not work either.  There is a selection box in word, for the table properties, that seems to default to the value "at least".  When I changed this manually to "exactly" in word, no problem with the .2 manually in Word.
    Hopefully this can be set within the template, for all new inserted tables.  I'm not sure the report generator VI's expose this property.  Well, this is a start for the issue.
    Edit ****
    You can go into the add table VI and expose the property.  See pic.   However, you have to decide if you want to "upgrade" this VI permanently to expose this property or make a copy with the property exposed.   I haven't messed with the new class reports too much, so not sure of the ins and outs with this.
    I think this is the issue with the row size becoming smaller.
    Mark Ramsdale

Maybe you are looking for