cancel
Showing results for 
Search instead for 
Did you mean: 

checkboxgroup

Former Member
0 Kudos

Can anybody please guide me for runtime binding of checked property of checkbox group ?

I have a group of checkbox. I want to set checked property of that checkbox at runtime with the help of context variable . can any body give me proper code snippest for the same ?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

There is no property named "checked".

Bind the "texts" property to a context attribute inside a node (cardinality 0:N, selection 0:N). Node elements will represent the check boxes, a check box is selected if the corresponding element is (multi-)selected in the node.

See also Javadoc:

The CheckBoxGroup UI element represents a multiple selection visualized as a group of checkboxes.

Data binding:

The property texts must be bound to an attribute Text living in a context node Values of cardinality 0..n and selection 0..n. The attribute Text must have a simple type like String.

The number of checkboxes is the size of node Values. The displayed texts are the values of attribute Text and the selection is the (multiple) selection of node Values. The check boxes are arranged into rows, the size of each row is limited by property colCount.

Events:

If a checkbox is toggled, the event onToggle is triggered. Event parameter checked contains the new state of the checkbox, property index contains the index of the toggled checkbox.

Armin

Former Member
0 Kudos

chk it

Former Member
0 Kudos

This code is nonsense.

Armin

Former Member
0 Kudos