users@woodstock.java.net

Re: selectMultipleButtonOnClick for TableRowGroup?

From: Vanessa Black <Vanessa.Black_at_Sun.COM>
Date: Thu, 08 May 2008 17:20:36 -0600
Yes I'm already using the table's de/select all buttons and I'm using it's onClicks - it is just that we also have another layer where the rows can be de/selected - the row group de/select all.  - That's where I also need to be able to enable/disable buttons based on rows that get checked this way.

Vanessa

Dan Labrecque wrote:
Vanessa Black wrote:


Dan Labrecque wrote:
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.)

This seems to be a basic need, to me, when you have multiple row groups in a table with the selectMultipleToggleButton = "true" and with action buttons that you need to enable/disable depending on whether rows are checked or not. It should be the same requirement that you've set for the table's multiple selection button.

Potentially, we could have the group's toggle button call this same function?

Hmm...could you explain a little more about what you mean here?

It means that you only need to set the table's selectMultipleButtonOnClick attribute. If you're using the table's de/select all buttons, you must have set that already?

Dan


Vanessa

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@woodstock.dev.java.net
For additional commands, e-mail: users-help@woodstock.dev.java.net



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@woodstock.dev.java.net
For additional commands, e-mail: users-help@woodstock.dev.java.net



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@woodstock.dev.java.net
For additional commands, e-mail: users-help@woodstock.dev.java.net



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@woodstock.dev.java.net
For additional commands, e-mail: users-help@woodstock.dev.java.net


--
Vanessa L. Black
Storage Platform Software Group
Sun Microsystems Inc.
Broomfield , Colorado
x72984, 303-272-2984