Skip to main content

JSF h:selectManyCheckbox with disabled selectItems loses value on rendering

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2010-05-10


I am using h:selectManyCheckbox on a page that takes a collection of selectItems from backing bean. Some of selectItem values are disabled while others are enabled. Everything works fine untill I render the container/panel. the disabled selectItems value is cleared when the panel containing this selectManyCheckbox component. same is the case when the form is submitted. However if a h:inputText is disabled, the value still remains on rendering.
Here is the code for html

  <h:selectManyCheckbox value="#{myBean.selectedSitesList}">
  <f:selectItems value="#{addOwnerPropertyBean.siteSelectItems}" />

I am using Jsf 2 by the way
please help!

Mudassir Hanif Raja

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2004-05-06

Please file a JIRA issue (Javaserverfaces project).