1
I have the following problem:
<select name="cargo" id="selectCargo"
class="form-control show-tick maiuscula" required >
<option value="">ESCOLHA A EMPRESA</option>
<c:forEach items="${filaEmpresa }" var = "filaEmpresa">
<option value="${filaEmpresa.id}"
selected="${funcionario.empresa.id }">${filaEmpresa.id }
</option>
</c:forEach>
</select>
That one of mine select
, is not correctly selecting the ID
of the employee’s company.
Ex: the ID
is 7 and he is always selecting the 10 (which is the last).
Always selecting the last value, even if no funcionario.empresa.id
is the correct value.
I’ve debugged and can’t find the point of error.
In this case I am performing the change of an employee. But this is the only field that is not correct.
It worked perfectly, thanks for the great explanation :D
– Kennedy Anderson