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] [Updated] (WW-3867) Grid - click on any row selects always 1 row of the grid.
Date Fri, 24 Aug 2012 14:29:59 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>
     updated <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;">Change By:</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>
                            (24/Aug/12 15:28)
        </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%;">
                                    <span class="diffcontext">I&nbsp;am&nbsp;creating&nbsp;GridView&nbsp;with:<br><br>{code</span>
<span class="diffremovedchars" style="background-color:#ffe7e7;text-decoration:line-through;">]</span>
<span class="diffaddedchars" style="background-color:#ddfade;">}</span>
<span class="diffcontext"><br>&lt;sjg:grid&nbsp;id=&quot;listData&quot;&nbsp;dataType=&quot;json&quot;<br>href=&quot;%{listAction}&quot;&nbsp;pager=&quot;true&quot;&nbsp;gridModel=&quot;list&quot;<br>gridview=&quot;true&quot;&nbsp;rowList=&quot;10,20,30,50,100&quot;&nbsp;rowNum=&quot;10&quot;<br>autowidth=&quot;true&quot;&gt;<br>{code}<br><br>where:&nbsp;<br>{code}<br>&lt;s:url&nbsp;id=&quot;listAction&quot;&nbsp;action=&quot;list-data-action&quot;&gt;<br>&lt;s:param&nbsp;name=&quot;param&quot;&nbsp;value=&quot;%{paramValue}&quot;&nbsp;/&gt;<br>&lt;/s:url&gt;<br>{code}<br><br>I&nbsp;define&nbsp;Grid&nbsp;data&nbsp;as:&nbsp;<br><br>{code}<br>&lt;sjg:gridColumn&nbsp;id=&quot;timestamp&quot;&nbsp;name=&quot;timestamp&quot;&nbsp;index=&quot;timestamp&quot;<br>title=&quot;date/time&quot;&nbsp;formatter=&quot;date&quot;<br>formatoptions=&quot;{newformat&nbsp;:&nbsp;&#39;d/m/Y&nbsp;H:i&#39;,&nbsp;srcformat&nbsp;:&nbsp;&#39;Y-m-d&nbsp;H:i:s&#39;}&quot;<br>sortable=&quot;true&quot;&nbsp;width=&quot;50&quot;&nbsp;/&gt;<br>&lt;sjg:gridColumn&nbsp;name=&quot;packageName&quot;&nbsp;index=&quot;packageName&quot;<br>title=&quot;package&nbsp;name&quot;&nbsp;sortable=&quot;true&quot;&nbsp;width=&quot;90&quot;<br>formatter=&quot;funcTestDetails&quot;&nbsp;/&gt;<br>&lt;sjg:gridColumn&nbsp;name=&quot;executionTime&quot;&nbsp;index=&quot;executionTime&quot;<br>title=&quot;execution&nbsp;time&quot;&nbsp;sortable=&quot;true&quot;&nbsp;width=&quot;50&quot;&nbsp;/&gt;<br>&lt;sjg:gridColumn&nbsp;name=&quot;testsCount&quot;&nbsp;index=&quot;testsCount&quot;&nbsp;title=&quot;total&quot;<br>sortable=&quot;true&quot;&nbsp;width=&quot;20&quot;&nbsp;/&gt;<br>{code}<br><br><br>Grid&nbsp;is&nbsp;populated&nbsp;with&nbsp;data&nbsp;properly,&nbsp;but&nbsp;when&nbsp;I&nbsp;click&nbsp;on&nbsp;any&nbsp;row&nbsp;-&nbsp;the&nbsp;first&nbsp;one&nbsp;is&nbsp;highlighted&nbsp;always.<br>I&nbsp;analized&nbsp;code&nbsp;with&nbsp;FireBug.&nbsp;Created&nbsp;table&nbsp;is:<br><br>{code}<br>&lt;tbody&gt;<br>&lt;tr&nbsp;class=&quot;jqgfirstrow&quot;&nbsp;style=&quot;height:auto&quot;&nbsp;role=&quot;row&quot;&gt;<br>&lt;tr&nbsp;id=&quot;null&quot;&nbsp;class=&quot;ui-widget-content&nbsp;jqgrow&nbsp;ui-row-ltr&nbsp;ui-state-highlight&quot;&nbsp;role=&quot;row&quot;&nbsp;tabindex=&quot;0&quot;&nbsp;aria-selected=&quot;true&quot;&gt;<br>&lt;tr&nbsp;id=&quot;null&quot;&nbsp;class=&quot;ui-widget-content&nbsp;jqgrow&nbsp;ui-row-ltr&quot;&nbsp;role=&quot;row&quot;&nbsp;tabindex=&quot;-1&quot;&gt;<br>&lt;tr&nbsp;id=&quot;null&quot;&nbsp;class=&quot;ui-widget-content&nbsp;jqgrow&nbsp;ui-row-ltr&quot;&nbsp;role=&quot;row&quot;&nbsp;tabindex=&quot;-1&quot;&gt;<br>&lt;tr&nbsp;id=&quot;null&quot;&nbsp;class=&quot;ui-widget-content&nbsp;jqgrow&nbsp;ui-row-ltr&quot;&nbsp;role=&quot;row&quot;&nbsp;tabindex=&quot;-1&quot;&gt;<br>&lt;tr&nbsp;id=&quot;null&quot;&nbsp;class=&quot;ui-widget-content&nbsp;jqgrow&nbsp;ui-row-ltr&quot;&nbsp;role=&quot;row&quot;&nbsp;<br>(...)<br>&lt;/tbody&gt;<br>{code}<br><br>id&nbsp;for&nbsp;each&nbsp;tr&nbsp;is&nbsp;null.&nbsp;when&nbsp;I&nbsp;modify&nbsp;it&nbsp;by&nbsp;hand&nbsp;(put&nbsp;1,2,3&nbsp;...)&nbsp;highlight&nbsp;works&nbsp;properly.&nbsp;<br><br>is&nbsp;there&nbsp;any&nbsp;workround&nbsp;to&nbsp;make&nbsp;it&nbsp;work&nbsp;properly&nbsp;or&nbsp;is&nbsp;there&nbsp;some&nbsp;bug&nbsp;in&nbsp;implementation.<br><br>I&nbsp;create&nbsp;other&nbsp;grid&nbsp;with&nbsp;data,&nbsp;and&nbsp;it&nbsp;works&nbsp;properly.&nbsp;My&nbsp;observation&nbsp;is,&nbsp;that&nbsp;in&nbsp;&gt;working&lt;&nbsp;grid&nbsp;I&nbsp;have&nbsp;field&nbsp;called&nbsp;&quot;ID&quot;&nbsp;in&nbsp;the&nbsp;table,&nbsp;but&nbsp;I&nbsp;don&#39;t&nbsp;think&nbsp;it&nbsp;is&nbsp;related?<br><br>Help&nbsp;appreaciated&nbsp;a&nbsp;lot.&nbsp;<br>Thanks!</span>

        </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