Skip to main content

JSF h:selectManyCheckbox with disabled selectItems loses value on rendering

1 reply [Last post]
mudassirhanif
Offline
Joined: 2010-05-10

Hi,

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}" />
  </h:selectManyCheckbox>

I am using Jsf 2 by the way
please help!

Regards,
Mudassir Hanif Raja

Reply viewing options

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

Please file a JIRA issue (Javaserverfaces project).