Hi. I want to know how I can obtain the display value of a SelectItem. I am trying to do it using selectitem.getDisplayValue(); but it just doesn't work for me. I can easily obtain the Value using selectitem.getValue(); but the display value ("the value that is shown to the user"), I just can't get access to that.
This is an example of the code I have.
This is an example of the code I have.
Code:
final SelectItem tallaSelect = new SelectItem(){ protected Criteria getPickListFilterCriteria(){ String idModelo = (String) modeloSelect.getDisplayValue(); Criteria criteria = new Criteria("id_modelo", idModelo); return criteria; } };
Comment