Html:select multiple=true selected

2 respostas
dtxk

Pessoall tudo bem?

Seguinte tenho um campo multiple e gostaria de setar os campos Array no formulario. Ou seja deixar selected segue:

<html:select property="carro" multiple="true" value="${clienteForm.carro}" >	
                     	<html:options collection="domainCarroList" property="value" labelProperty="label" />
                     </html:select>

Estou tentando setar um array no “value” mas nao ta rolando… segue o bean

private String[] carro; public String[] getCarro() { return carro; } public void setCarro(String[] carro) { this.carro = carro; }

Por favor alguem pode ajudar?

2 Respostas

dtxk

eai ninguem arrisca da uma ajuda?

dtxk

up

Criado 21 de junho de 2011
Ultima resposta 22 de jun. de 2011
Respostas 2
Participantes 1