posted 15 years ago
Hi Friends,
First of all i would like to thankyou all for your previous valuable suggestions. I got stucked up with a problem.
I have a dropdown list in which i have only 2 values 'Remodeling' and 'New'. When the user selects the option 'Remodeling' , i need to render a group of checkboxes.I tried lot many ways but didn't work.
Could anyone please help me out on this. Below is my sample code:
Code to display drop down list
--------------------------------------------------------------------------------
<h:selectOneMenu value="#{gfmCoverageABean.constructionType}" valueChangeListener="#gfmCoverageABean.onConstructionTypeChange}">
<f:selectItems id="typeOfConstructionProject" value="#{gfmCoverageABean.typeOfConstructionProjectList}" />
</h:selectOneMenu>
Code to render checkbox when drop down option selected is 'Remodeling'
--------------------------------------------------------------------------------
<h:outputLabel id="foundationLbl" for="foundation" value="#{PolicyLabels['GfmCoverageADetails.Foundation']}"
rendered="#{gfmCoverageABean.constructionType eq 'Remodeling'}"/>
<ig:checkBox id="foundation" value="#{gfmCoverageABean.gfmCoverageView.foundation}"
rendered="#{gfmCoverageABean.constructionType eq 'Remodeling'}"/>
Problem here is my checkbox is not getting displayed on any case.
Thanks
vijay