Search code examples
jsfxpageslotus-domino

Binding XPages check box group to managed bean


How does one go about binding the value of an XPages "Check Box Group" to a Managed Bean so that multiple values can be loaded and saved without binding each check box individually? I'm able to bind text values on the page just fine, but nothing seems to work with the check box group. I have tried using a String with comma separated values, which is how it is stored in a Notes document, as well as a Vector to no avail.


Solution

  • The issue with checkboxes is that value binding to bean fields isn't not consistent. Single value -> Set string value. Multiple values -> Set list value.

    At least it was like that a while back.

    This is the technique I use to work around the issue: http://dontpanic82.blogspot.no/2012/06/multi-value-fields-and-beans-in-xpages.html