I just found out what the problem was. This works:
<db:select fieldName="account_type_suffix" size="1"
selectedIndex="N">
<db:staticData name="data-account_type_suffix">
<db:staticDataItem key="A"
value="accountType.accountTypeSuffix.A"/>
<db:staticDataItem key="B"
value="accountType.accountTypeSuffix.B"/>
<db:staticDataItem key="C"
value="accountType.accountTypeSuffix.C"/>
<db:staticDataItem key="E"
value="accountType.accountTypeSuffix.E"/>
<db:staticDataItem key="I"
value="accountType.accountTypeSuffix.I"/>
<db:staticDataItem key="N"
value="accountType.accountTypeSuffix.N"/>
</db:staticData>
</db:select>
i.e. I was supposed to use the key. The documentation seems not to be
explicit on this.
Sorry for the bother.
> -----Original Message-----
> From: J M Okomba
> Sent: 26 September 2002 09:13
> To: '[EMAIL PROTECTED]'
> Subject: problem with <db:select> tag
>
>
> The selectedIndex attribute of <db:select> tag seems not to be working
> with my application. e.g. if I put:
>
> <db:select fieldName="account_type_suffix" size="1"
> selectedIndex="5">
> <db:staticData name="data-account_type_suffix">
> <db:staticDataItem key="A"
> value="accountType.accountTypeSuffix.A"/>
> <db:staticDataItem key="B"
> value="accountType.accountTypeSuffix.B"/>
> <db:staticDataItem key="C"
> value="accountType.accountTypeSuffix.C"/>
> <db:staticDataItem key="E"
> value="accountType.accountTypeSuffix.E"/>
> <db:staticDataItem key="I"
> value="accountType.accountTypeSuffix.I"/>
> <db:staticDataItem key="N"
> value="accountType.accountTypeSuffix.N"/>
> </db:staticData>
> </db:select>
>
> I expect the last option to be selected but this is not happening.
>
> Am I doing it wrongly? Please help.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms