4 Replies Latest reply on Mar 28, 2008 4:32 PM by pmuir

    Unable to conditionally render s:selectItems

    mvastrad

      My problem is that I need to conditionally render an option in the s:selectItems component. I tried the 'disabled' attribute which works fine in firefox but not in IE. The 'rendered' attribute seems to make no difference either. The option is rendered irrespective of the value of the rendered attribute.


      This is how I use it:


      <h:selectOneMenu
                                                    value="#{myForm.actionType}"
                                                    layout="pageDirection"
                                                    id="selectedActionType">
                                    
                                                  <s:selectItems value="#{myForm.actionTypes}"
                                                               var="type"
                                                               rendered="type.displayable"
                                                               label="#{type.description}"/>
                                                <rms:enumListConverter/>
                                            </h:selectOneMenu>