You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org> on 2005/05/03 01:57:05 UTC
[jira] Resolved: (BEEHIVE-593) Datagrid rows tag not rendering HTML attributes
[ http://issues.apache.org/jira/browse/BEEHIVE-593?page=all ]
Eddie O'Neil resolved BEEHIVE-593:
----------------------------------
Assign To: Nathan Jantz (was: Eddie O'Neil)
Resolution: Invalid
The issue here is that the HTML attributes on <netui-data:rows> only render for the <tbody> tag that contains the <tr> elements. It happens this way because the <rows> attributes (JSP 2.0 EL expressions) only evaluate once per pass through the data grid's body. As a result, the expressions aren't *reevaluated* for each <tr>.
To have these attributes showup on the <tbody> tag, you'll need to set the "renderRowGroups" flag on the <dataGrid> tag. I'll enter an ehnancement that throws an exception if these attributes are set but the renderRowGroups flag is not.
To set attributes on the <tr> tag, you'll need to disable row rendering on the <rows> tag with renderRow="false" and use the <netui-data:row> tag to set attributes on the <tr>. The feature is exposed this way so that the <row> tags is optional and doesn't always control repeating over the data items.
> Datagrid rows tag not rendering HTML attributes
> -----------------------------------------------
>
> Key: BEEHIVE-593
> URL: http://issues.apache.org/jira/browse/BEEHIVE-593
> Project: Beehive
> Type: Bug
> Components: NetUI
> Versions: V1
> Environment: Windows XP, Weblogic 9.0, Tomcat 5.0
> Reporter: Nathan Jantz
> Assignee: Nathan Jantz
> Fix For: V1
> Attachments: rowsTagAttributes.zip
>
> When a datagrid renders <tr> data rows, all attributes set in the <netui-data:rows> tag do not get rendered to the <tr> element.
> Test Case:
> <netui-data:rows
> align="left"
> char="foo"
> charoff="foo"
> dir="LTR"
> lang="en"
> onClick="foo()"
> onDblClick="foo()"
> onKeyDown="foo()"
> onKeyPress="foo()"
> onKeyUp="foo()"
> onMouseDown="foo()"
> onMouseMove="foo()"
> onMouseOut="foo()"
> onMouseOver="foo()"
> onMouseUp="foo()"
> style="foo"
> styleClass="foo"
> title="foo"
> valign="top"
> >
> Expected Result:
> <tr align="left"
> char="foo"
> charoff="foo"
> dir="LTR"
> lang="en"
> onClick="foo()"
> onDblClick="foo()"
> onKeyDown="foo()"
> onKeyPress="foo()"
> onKeyUp="foo()"
> onMouseDown="foo()"
> onMouseMove="foo()"
> onMouseOut="foo()"
> onMouseOver="foo()"
> onMouseUp="foo()"
> style="foo"
> class="foo"
> title="foo"
> valign="top"
> >
> Actual results:
> <tr class="datagrid-even">
> Attaching repro here shortly.
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira