我在使用动作类填充带有支柱的组合框时遇到了一点问题..
这是我的表单元素:
<s:select label = "Estado"
name = "estados"
value = "#estados"
headerKey = "-1"
headerValue = "---Seleccione---"
list = "estados"/>
这是动作类:
public class PrepararMedicosAction extends ActionSupport
implements Preparable, ParameterAware{
public List <Estado> estados;
private IFachada lookupFachadaRemote() {
try {
Context c = new InitialContext();
return (IFachada) c.lookup("java:global/Fachada/Fachada!com.interfaces.IFachada");
} catch (NamingException ne) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception caught", ne);
throw new RuntimeException(ne);
}
}
public String display() {
return NONE;
}
@Override
public void prepare() throws Exception {
this.estados= fachada.getEstados();
}
}