dev@woodstock.java.net

Re: Bug in RowGroup component

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Fri, 11 Jul 2008 10:55:31 -0400

Ramon Casha wrote:
> There is a bug in the RowGroup component (already filed as bug #1315).
>
> In the invokeOnComponent method, it assumes that any content of a
> column has a rowId encoded in its clientId. However, header and footer
> facets do not. I created a footer facet because I'm using ajax to
> update it with a total of the fields in the table cells.
>
> I have temporarily gone around this by overriding that method in my
> own subclass. My question is, what is the safest method to check
> whether a clientId has a rowId in it. (eg: is the rowId always numeric?)

For Woodstock it is an int, but it doesn't have to be. You might want to
check if the component is included in the facet map, first. For example,
if you know the name of the facet, you can use:

UIComponent facet = getFacet("FacetName");
if (facet != null) {
    // Skip row id
}

Otherwise, you might have to iterate over the facet map and look for a
match? I have not looked into the issue myself.

Dan

>
> Ramon Casha
>
> ----
> Disclamer: I am not responsible for the disclaimer added below
> ----
>
> ------------------------------------------------------------------------
>
> *DISCLAIMER*
>
> /The information contained in this electronic mail may be confidential
> or legally privileged. It is for the intended recipient(s) only.
> Should you receive this message in error, please notify the sender by
> replying to this mail. Unauthorised use of the contents is strictly
> prohibited. Whilst all care has been taken, the Megabyte Group is not
> responsible for the integrity of the contents of this electronic mail
> and any attachments included within./
>
> ------------------------------------------------------------------------
>