Estoy realizando una aplicaion web en java
Package clubnaval.web.datos;
import com.dao.sociosDAO;import com.dto.deudasSociosDTO;import java.util.ArrayList;import javax.faces.bean.ManagedBean;import javax.faces.bean.ViewScoped;import javax.faces.event.ValueChangeEvent;
/** * * @author User */@ManagedBean@ViewScopedpublic class cedulaBean {
private static sociosDAO daoSocios = new sociosDAO(); private ArrayListdatosSocios = new ArrayList(); private String cedula; private deudasSociosDTO aDI; /** Creates a new instance of cedulaBean */ public deudasSociosDTO getaDI() { return aDI; }
public void setaDI(deudasSociosDTO aDI) { this.aDI = aDI; }
public String getCedula() { return cedula; }
public void setCedula(String cedula) { this.cedula = cedula; }
public static sociosDAO getDaoSocios() { return daoSocios; }
public static void setDaoSocios(sociosDAO daoSocios) { cedulaBean.daoSocios = daoSocios; }
public ArrayList getDatosSocios() { return datosSocios; }
public void setDatosSocios(ArrayList datosSocios) { this.datosSocios = datosSocios; }
public void clienteListener(ValueChangeEvent evento) { System.out.println("entro..."); aDI = (deudasSociosDTO)evento.getNewValue(); cedula = aDI.getaNombre(); }
}
import com.dao.sociosDAO;import com.dto.deudasSociosDTO;import java.util.ArrayList;import javax.faces.bean.ManagedBean;import javax.faces.bean.ViewScoped;import javax.faces.event.ValueChangeEvent;
/** * * @author User */@ManagedBean@ViewScopedpublic class cedulaBean {
private static sociosDAO daoSocios = new sociosDAO(); private ArrayListdatosSocios = new ArrayList(); private String cedula; private deudasSociosDTO aDI; /** Creates a new instance of cedulaBean */ public deudasSociosDTO getaDI() { return aDI; }
public void setaDI(deudasSociosDTO aDI) { this.aDI = aDI; }
public String getCedula() { return cedula; }
public void setCedula(String cedula) { this.cedula = cedula; }
public static sociosDAO getDaoSocios() { return daoSocios; }
public static void setDaoSocios(sociosDAO daoSocios) { cedulaBean.daoSocios = daoSocios; }
public ArrayList getDatosSocios() { return datosSocios; }
public void setDatosSocios(ArrayList datosSocios) { this.datosSocios = datosSocios; }
public void clienteListener(ValueChangeEvent evento) { System.out.println("entro..."); aDI = (deudasSociosDTO)evento.getNewValue(); cedula = aDI.getaNombre(); }
}