Skip to content

Checkbox in Custom Forms #810

Answered by rsoika
lazo23 asked this question in Q&A
Feb 24, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @lazo23

a single checkbox can look like this:

<h:selectBooleanCheckbox
   value="#{workitem.item['your-item']}">
</h:selectBooleanCheckbox>

an example for a radio button with multiple choices:

<h:selectOneRadio value="#{workitem.item['your-item']}">
  <f:selectItem itemLabel="IMAP" itemValue="IMAP"/>
  <f:selectItem itemLabel="FTP" itemValue="FTP"/>
 </h:selectOneRadio>

And a many-checkbox can look like this

<h:selectManyCheckbox layout="pageDirection"
   value="#{workitem.itemListArray['my-item']}">
		<f:selectItem itemValue="a" temLabel="A"></f:selectItem>
		<f:selectItem itemValue="b" temLabel="B"></f:selectItem>
		<f:selectItem itemValue="c" temLabel="C"></f:selectItem>
</h:selec…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lazo23
Comment options

Answer selected by lazo23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants