This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jun 2, 2011, 5:52 PM
33 Posts

Is it possible to bind single checkbox to bean property of Boolean type?

  • Category: Managed Beans in NSF
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
I wonder if there is a way how to bind directly a checkbox on XPage to managed bean property of Boolean type? Or do I need to use a converter?
Jun 3, 2011, 6:31 AM
33 Posts
Re: Is it possible to bind single checkbox to bean property of Boolean type?
As I came to a conclusion that a direct binding between single checkbox and Boolean property of underlying managed bean would not be possible I tried to create my own converter. Although it works for the edit field e.g. if I put '0' in the field the managed bean property is set to false, if '1' is used then the respective property is set to true, it does not work with checkbox field.
From my testing it seems that getAsObject method of the assigned converter is never called (but getAsString is called properly).

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal