[ http://issues.apache.org/jira/browse/BEEHIVE-391?page=history ]
     
Eddie O'Neil resolved BEEHIVE-391:
----------------------------------

     Assign To: Nathan Jantz  (was: Eddie O'Neil)
    Resolution: Cannot Reproduce

I've done the same thing as:

      <netui-data:dataGrid ... renderRowGroups="true" styleClassPolicy="empty">

and have received the results:

    
    
    
    
    
<thead>
<tr class="header">
...
</tr>
</thead>
<tfoot>
<tr class="footer">
...
</tr>
</tfoot>

which should be right.  The <tfoot> and <thead> tags don't need a class 
attribute when rendered with an empty policy because there can be only one of 
each which means that a style can be applied specifically via CSS.

The <tr>s on the other hand do require the class attribute because there are 
many rows in different regions of the grid, and each requires a specific style 
class name in order to describe whether the row is in the header, an even row 
in the body, an odd row in the body, or in the footer.

Just to make sure that this continues to work, I'm adding a test of rendering 
row groups with an "empty" style policy.

> Data grid netui-data:footer tag is not rendering class attribute in tfoot 
> html tag
> ----------------------------------------------------------------------------------
>
>          Key: BEEHIVE-391
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-391
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Nathan Jantz
>     Assignee: Nathan Jantz
>     Priority: Minor
>      Fix For: V1

>
> The netui-data:footer tag is not rendering the class attribute in the tfoot 
> html tag when styleClassPolicy is set to 'empty'.
> JSP Code Snippet:
> <netui-data:dataGrid dataSource="pageScope.jstlResult.rows" name="ResultSet" 
> styleClassPolicy="empty" renderRowGroups="true">
> ...
>   <netui-data:footer>
>     <td colspan="7" ><hr /><br/><netui-data:renderPager /></td>
>   </netui-data:footer>
> </netui-data:dataGrid>
> ---------------------------------
> Expected Results:
> <thead class="datagrid">
>   <tr class="header">...</tr>
> </thead>
> ...
> <tfoot class="datagrid">
>   <tr class="footer">...</tr>
> </tfoot>
> ---------------------------------
> Actual Results:
> <thead class="datagrid">
>   <tr class="header">...</tr>
> </thead>
> ...
> <tfoot>
>   <tr class="footer">...</tr>
> </tfoot>
> Notice that the thead tag is properly rendering the class attribute but not 
> tfoot.  Also it is worth mentioning that the attribute IS rendered in the 
> tfoot tag when styleClassPolicy is set to 'default'.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to