0

How to make a <h:selectOneMenu> unselectable/unchangeable. but still it should be submitted. It should be shown only for user reference. If we use disabled=true it will not be submitted.

otherthan disabled how to make select one menu unchangeable ?

Raju Boddupalli
  • 1,789
  • 4
  • 21
  • 29

2 Answers2

0

just use partialsubmit="true" along with disabled="true" it wil submitt the value

0

Just disable it and provide the value in a hidden input.

<h:selectOneMenu value="#{bean.value}" disabled="true">...</h:selectOneMenu>
<h:inputHidden value="#{bean.value}" />
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555