Dynamic Select list in a FormTable

3 messages Options
Embed this post
Permalink
easydoor-4

Dynamic Select list in a FormTable

Reply Threaded More More options
Print post
Permalink
Your FormTable example includes a select list InvestmentSelect which is
static, but how can i build a dynamic Select List in a FormTable ?
I tried with the renderTableDate method but it's not clear, could you help me
please ?

Thanks

Sven Pfeiffer

Re: Dynamic Select list in a FormTable

Reply Threaded More More options
Print post
Permalink
Hi easydoor,

I'm not sure what "dynamic Select List" means to you.

For my "dynamic Select" (dynamic because I get the options from a
database using hibernate) I  do something
similar to:

Select select = new Select();
for(int i = 0;i<20;i++) {
    select.add(new Option(i, "Label for " + i));
}

hth
SVen

easydoor wrote:
> Your FormTable example includes a select list InvestmentSelect which is
> static, but how can i build a dynamic Select List in a FormTable ?
> I tried with the renderTableDate method but it's not clear, could you help me
> please ?
>
> Thanks
>
>
>  

easydoor-4

Re: Dynamic Select list in a FormTable

Reply Threaded More More options
Print post
Permalink
OK Thanks