Select Page

Yep! I am speaking at IBM Connect 2013!

In celebration I am posting 5 Tips in 5 Days and today is…

Tip #1

In the Notes 9 Public Beta there is a new Boolean Display Type (converter) for Radio Button Groups.

The field will only accept actual true/false values.

Here’s how you use it when you want to bind it to a managed bean.

And here’s the markup!

The trick is to know to use Expression Language (EL) to express the choice values as true/false (examine the itemValue attributes below).

<xp:radioGroupid=”radioGroup1″
value=”#{auditUserBean.isBooleanValue}”]]>
<xp:selectItemitemLabel=”Yes”itemValue=”#{true}”></xp:selectItem]]>
<xp:selectItemitemLabel=”No”itemValue=”#{false}”></xp:selectItem]]>
</xp:radioGroup]]>