0 Replies Latest reply on Oct 16, 2008 8:45 PM by Val Sw

    Dropdown default value selected should be the one already created but default value of dropdown is the first value in list.

    Val Sw Expert
      I have dropdown list which displays list of values from database.

      ISSUE :
      Suppose current Experiment Name is “SCX fractions 14 May 2008”
      Now, when I click “Edit” to update experiment details,  Experiment Name dropdown default value selected should be the one already created but default value of dropdown is the first value in list.

      How can I handle this ... please suggest...

      xhtml
      -----
      <s:decorate id="experimentNameDecoration" template="layout/edit.xhtml">
      <ui:define name="label">Experiment Name</ui:define>
      <h:selectOneMenu value="#{quantExperimentHome.instance.experimentTableIndex}">
      <s:selectItems value="#{experimentTableIndexList.resultList}"
           var="experimentTableIndex" label="#{experimentTableIndex.experimentName}"/>
      <s:convertEntity/>
      </h:selectOneMenu>
      </s:decorate>