users@woodstock.java.net

Re: selectMultipleButtonOnClick for TableRowGroup?

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Thu, 08 May 2008 17:23:36 -0400

Please note that JavaScript attributes, such as onClick, are placed on
the table row (td tag). And setting a checkbox selection via JavaScript
does not execute its onClick event.

If you set the table's selectMultipleButtonOnClick attribute, we will
invoke your function whenever a user clicks on the select multiple
button. (This will select all rows in the table.) Unfortunately, we
never created such a feature for the tableRowGroup tag. (You're the
first to ask for it.) Potentially, we could have the group's toggle
button call this same function?

Dan

Vanessa Black wrote:
>
> Hi folks,
>
> I have a table with multiple tableRowGroups where I need to invoke a
> javascript function when I click on a checkbox in a row - I have this
> working. This function also needs to be invoked when the group
> checkbox is clicked. I'm not getting that to work with 4.2 GA version.
> I don't see some kind of selectMultipleButtonOnClick attribute for
> TableRowGroup where I can assign that javascript function. I do see
> the onClick for TableRowGroup but I don't get the javascript function
> invoked when I assign it - it does toggle the checkboxes within the
> rowgroup - but the javascript does not get invoked.
>
> Thanks for any guidance here,
>
> Vanessa
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>