Re: How to pre-select a select combo box

2016-06-21 Thread Guilherme Bisconcini
What I had to do was put the element I want to pre-select in the List in index 0 of my ArrayList. The problem was I made all the logic for the first element be on the position 0 and the rest in the Natural Sort Order. Here is the code: public static List ordenaEmpresasEspecial(List empresas){

Re: How to pre-select a select combo box

2016-06-21 Thread Christoph Nenning
> > Hi, > > > as far as I remember it is just about the name of > > > > name="pessoaForm.empresa" label="Empresa" select="idDefaultSelection" > />* > > This means your action needs a member "pessoaForm.empresa" and that one > must be initialized with the preselected value. > > I don't t

Re: How to pre-select a select combo box

2016-06-21 Thread Christoph Nenning
Hi, as far as I remember it is just about the name of > name="pessoaForm.empresa" label="Empresa" select="idDefaultSelection" />* This means your action needs a member "pessoaForm.empresa" and that one must be initialized with the preselected value. I don't think that you need the select