struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anna Gadomska (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-3867) Grid - click on any row selects always 1 row of the grid.
Date Fri, 24 Aug 2012 14:28:00 GMT



























<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2)
{
    #email-body { min-width: 30em !important; }
    #email-page { padding: 8px !important; }
    #email-banner { padding: 8px 8px 0 8px !important; }
    #email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
    #email-fields { padding: 0 8px 8px 8px !important; }
    #email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
    <tr valign="top">
        <td id="email-page" style="padding:16px !important;">
            <table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px
solid #bbbbbb;color:#000000;width:100%;">
                <tr valign="top">
                    <td bgcolor="#ffffff" style="background-color:#ffffff;color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img
src="https://issues.apache.org/jira/s/en_UKso2yup/782/7/_/jira-logo-scaled.png" alt="" style="vertical-align:top;"
/></td>
                </tr><tr valign="top">
    <td id="email-banner" style="padding:32px 32px 0 32px;">
        
                
        
        
            <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%"
style="width:100%;">
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
                                        <img id="email-avatar" src="https://issues.apache.org/jira/secure/useravatar?avatarId=10452"
alt="" height="48" width="48" border="0" align="left" style="padding:0;margin: 0 16px 16px
0;" />
                        <div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
                                    <a class="user-hover" rel="klempusia" id="email_klempusia"
href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=klempusia" style="color:#326ca6;">Anna
Gadomska</a>
     created <img src="https://issues.apache.org/jira/images/icons/bug.gif" height="16"
width="16" border="0" align="absmiddle" alt="Bug"> <a style='color:#326ca6;text-decoration:none;'
href='https://issues.apache.org/jira/browse/WW-3867'>WW-3867</a>
            </div>
                        <div id="email-summary" style="font-size:16px;line-height:20px;padding:2px
0 16px 0;">
                <a style='color:#326ca6;text-decoration:none;' href='https://issues.apache.org/jira/browse/WW-3867'><strong>Grid
- click on any row selects always 1 row of the grid.</strong></a>
            </div>
                    </td>
    </tr>
</table>
    </td>
</tr>
<tr valign="top">
    <td id="email-fields" style="padding:0 32px 32px 32px;">
        <table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;"
width="100%">
            <tr valign="top">
                <td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Issue Type:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
0 10px 0;width:100%;">
                <img src="https://issues.apache.org/jira/images/icons/bug.gif" height="16"
width="16" border="0" align="absmiddle" alt="Bug">        Bug
    </td>
</tr>                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Assignee:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
0 10px 0;width:100%;">
                    Unassigned            </td>
</tr>                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Components:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
0 10px 0;width:100%;">
                    Plugin - Tags            </td>
</tr>
                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Created:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
0 10px 0;width:100%;">
        24/Aug/12 15:27
    </td>
</tr>                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Description:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
0 10px 0;width:100%;">
        <p style='margin-top:0;margin-bottom:10px;'>I am creating GridView with:</p>

<p style='margin-top:0;margin-bottom:10px;'>{code]<br/>
&lt;sjg:grid id="listData" dataType="json"<br/>
href="%{listAction}" pager="true" gridModel="list"<br/>
gridview="true" rowList="10,20,30,50,100" rowNum="10"<br/>
autowidth="true"&gt;</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">where:</pre>
</div></div>
<p style='margin-top:0;margin-bottom:10px;'>&lt;s:url id="listAction" action="list-data-action"&gt;<br/>
&lt;s:param name="param" value="%{paramValue}" /&gt;<br/>
&lt;/s:url&gt;</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">I define Grid data as:</pre>
</div></div>
<p style='margin-top:0;margin-bottom:10px;'>&lt;sjg:gridColumn id="timestamp" name="timestamp"
index="timestamp"<br/>
title="date/time" formatter="date"<br/>
formatoptions="{newformat : 'd/m/Y H:i', srcformat : 'Y-m-d H:i:s'}"<br/>
sortable="true" width="50" /&gt;<br/>
&lt;sjg:gridColumn name="packageName" index="packageName"<br/>
title="package name" sortable="true" width="90"<br/>
formatter="funcTestDetails" /&gt;<br/>
&lt;sjg:gridColumn name="executionTime" index="executionTime"<br/>
title="execution time" sortable="true" width="50" /&gt;<br/>
&lt;sjg:gridColumn name="testsCount" index="testsCount" title="total"<br/>
sortable="true" width="20" /&gt;</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">Grid is populated with data properly, but when I click on any
row - the first one is highlighted always.
I analized code with FireBug. Created table is:</pre>
</div></div>
<p style='margin-top:0;margin-bottom:10px;'>&lt;tbody&gt;<br/>
&lt;tr class="jqgfirstrow" style="height:auto" role="row"&gt;<br/>
&lt;tr id="null" class="ui-widget-content jqgrow ui-row-ltr ui-state-highlight" role="row"
tabindex="0" aria-selected="true"&gt;<br/>
&lt;tr id="null" class="ui-widget-content jqgrow ui-row-ltr" role="row" tabindex="-1"&gt;<br/>
&lt;tr id="null" class="ui-widget-content jqgrow ui-row-ltr" role="row" tabindex="-1"&gt;<br/>
&lt;tr id="null" class="ui-widget-content jqgrow ui-row-ltr" role="row" tabindex="-1"&gt;<br/>
&lt;tr id="null" class="ui-widget-content jqgrow ui-row-ltr" role="row" <br/>
(...)<br/>
&lt;/tbody&gt;</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java"></pre>
</div></div>

<p style='margin-top:0;margin-bottom:10px;'>id for each tr is null. when I modify it
by hand (put 1,2,3 ...) highlight works properly. </p>

<p style='margin-top:0;margin-bottom:10px;'>is there any workround to make it work properly
or is there some bug in implementation.</p>

<p style='margin-top:0;margin-bottom:10px;'>I create other grid with data, and it works
properly. My observation is, that in &gt;working&lt; grid I have field called "ID"
in the table, but I don't think it is related?</p>

<p style='margin-top:0;margin-bottom:10px;'>Help appreaciated a lot. <br/>
Thanks!</p>
    </td>
</tr>
                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Environment:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
0 10px 0;width:100%;">
        <p style='margin-top:0;margin-bottom:10px;'>Struts 2.3.4</p>
    </td>
</tr>
                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Project:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
0 10px 0;width:100%;">
        <a style="color:#326ca6;" href="https://issues.apache.org/jira/browse/WW">Struts
2</a>
    </td>
</tr>                                                <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Priority:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
0 10px 0;width:100%;">
                <img src="https://issues.apache.org/jira/images/icons/priority_major.gif"
height="16" width="16" border="0" align="absmiddle" alt="Major">        Major
    </td>
</tr>                        <tr valign="top">
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
10px 10px 0;white-space:nowrap;">
        <strong style="font-weight:normal;color:#505050;">Reporter:</strong>
    </td>
    <td style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0
0 10px 0;width:100%;">
                                        <a class="user-hover" rel="klempusia" id="email_klempusia"
href="https://issues.apache.org/jira/secure/ViewProfile.jspa?name=klempusia" style="color:#326ca6;">Anna
Gadomska</a>
                </td>
</tr>                                                    
    
    
                        </table>
                </td>
            </tr>
        </table>
    </td>
</tr>













            </table>
        </td><!-- End #email-page -->
    </tr>
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding:
0 16px 16px 16px;text-align:center;">
            This message is automatically generated by JIRA.<br />
            If you think it was sent incorrectly, please contact your JIRA administrators<br
/>
            For more information on JIRA, see: <a style='color:#326ca6;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
        </td>
    </tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->

Mime
View raw message