L
Lucas White
Hi
I'm trying to default a combo box to select a default value when my
web page loads. The following code selects the index from the
indexList with index id 27 because I hard-coded it:
<html:select property="primaryIndexId" name="group" value="27">
<htmlption value="-1"> </htmlption>
<htmlptions collection="indexList" property="indexId"
labelProperty="indexDesc" />
</html:select>
But when I try to soft code it to display the group's primary index,
it does not work:
<html:select property="primaryIndexId" name="group"
value="primaryIndex.indexId">
<htmlption value="-1"> </htmlption>
<htmlptions collection="indexList" property="indexId"
labelProperty="indexDesc" />
</html:select>
Any help would be appreciated.
I'm trying to default a combo box to select a default value when my
web page loads. The following code selects the index from the
indexList with index id 27 because I hard-coded it:
<html:select property="primaryIndexId" name="group" value="27">
<htmlption value="-1"> </htmlption>
<htmlptions collection="indexList" property="indexId"
labelProperty="indexDesc" />
</html:select>
But when I try to soft code it to display the group's primary index,
it does not work:
<html:select property="primaryIndexId" name="group"
value="primaryIndex.indexId">
<htmlption value="-1"> </htmlption>
<htmlptions collection="indexList" property="indexId"
labelProperty="indexDesc" />
</html:select>
Any help would be appreciated.