saludo tengo me mostrar datos en un pantalla echa en primeface pero no me muestra no se que hago mal
Vista : Proveedor.xhtml
<p:panel id="Proveedor" style="margin-bottom:20px">
<center>
<p:growl id="growl" life="2000" />
<p:panel id="pnl" header="New User" style="margin-bottom:10px;">
<p:panelGrid style="margin-top:20px">
<p:row>
<p:column><h:outputLabel for="lblCodigo" value="Codigo:" /></p:column>
<p:column><p:inputText id="txtCodigo" value="#{proveedorController.listaProveedor.codigo}" size="25" /></p:column>
<p:column><h:outputLabel for="lblTipoPersona" value="Tipo Persona:" /></p:column>
<p:column><p:inputText id="txtTipoPersona" value="#{proveedorController.listaProveedor.descripcionT}" size="25"/></p:column>
<p:column>
<h:commandLink>
<h:graphicImage value="/Images/boxupload32.png" />
</h:commandLink>
</p:column>
</p:row>
<p:row>
<p:column><h:outputLabel for="lblApePaterno" value="Apellido Paterno:" /></p:column>
<p:column><p:inputText id="txtApePaterno" value="#{proveedorController.listaProveedor.apellidoPaterno}" size="25" /></p:column>
<p:column><h:outputLabel for="lblApeMaterno" value="Apellido Materno" /></p:column>
<p:column colspan="2"><p:inputText id="txtApeMaterno" value="#{proveedorController.listaProveedor.apellidoMaterno}" size="25" /></p:column>
</p:row>
<p:row>
<p:column><h:outputLabel for="lblPrimerNombre" value="Primer Nombre:" /></p:column>
<p:column><p:inputText id="txtPrimerNombre" value="#{proveedorController.listaProveedor.primerNombre}" size="25" /></p:column>
<p:column><h:outputLabel for="lblSegundoNombre" value="Segundo Nombre" /></p:column>
<p:column colspan="2"><p:inputText id="txtSegundoNombre" value="#{proveedorController.listaProveedor.segundoNombre}" size="25" /></p:column>
</p:row>
<p:row>
<p:column><h:outputLabel for="lblDireccion" value="Direccion:" /></p:column>
<p:column colspan="3"><p:inputText id="txtDireccion" value="#{proveedorController.listaProveedor.descripcionD}" size="76" /></p:column>
<p:column>
<h:commandLink>
<h:graphicImage value="/Images/boxupload32.png" />
</h:commandLink>
</p:column>
</p:row>
<p:row>
<p:column><h:outputLabel for="lblDocIdentificacion" value="Doc. Identificacion:" /></p:column>
<p:column><p:inputText id="txtDocIdentificacion" value="#{proveedorController.listaProveedor.descripcionTI}" size="25" /></p:column>
<p:column>
<h:commandLink>
<h:graphicImage value="/Images/boxupload32.png" />
</h:commandLink>
</p:column>
</p:row>
</p:panelGrid>
</p:panel>
tengo las siguiente clases
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mussoft.model;
/**
*
* @author Guery
*/
public class Proveedor {
private int pkid;
private int idmoneda;
private double lineacredito;
private double balancesoles;
private double balancedolares;
private int idmodalidadcredito;
private int diascredito;
private Boolean restrictivo;
private String idmonedalistaprecio;
private Boolean entregadistribuida;
private Boolean entregacentralizada;
private Boolean proveedorgiro;
private Boolean creditocontado;
private int idtipomediodepago;
private String idcuentacontable;
public Proveedor(){}
public Proveedor(int pkid, int idmoneda,double lineacredito,double balancesoles,double balancedolares,
int idmodalidadcredito,int diascredito,Boolean restrictivo,String idmonedalistaprecio,
Boolean entregadistribuida,Boolean entregacentralizada,Boolean proveedorgiro,
Boolean creditocontado,int idtipomediodepago,String idcuentacontable){
this.pkid = pkid;
this.idmoneda = idmoneda;
this.lineacredito = lineacredito;
this.balancesoles = balancesoles;
this.balancedolares = balancedolares;
this.idmodalidadcredito = idmodalidadcredito;
this.diascredito = diascredito;
this.restrictivo = restrictivo;
this.idmonedalistaprecio = idmonedalistaprecio;
this.entregadistribuida = entregadistribuida;
this.entregacentralizada = entregacentralizada;
this.proveedorgiro = proveedorgiro;
this.creditocontado = creditocontado;
this.idtipomediodepago = idtipomediodepago;
this.idcuentacontable = idcuentacontable;
}
/**
* @return the pkid
*/
public int getPkid() {
return pkid;
}
/**
* @param pkid the pkid to set
*/
public void setPkid(int pkid) {
this.pkid = pkid;
}
/**
* @return the idmoneda
*/
public int getIdmoneda() {
return idmoneda;
}
/**
* @param idmoneda the idmoneda to set
*/
public void setIdmoneda(int idmoneda) {
this.idmoneda = idmoneda;
}
/**
* @return the lineacredito
*/
public double getLineacredito() {
return lineacredito;
}
/**
* @param lineacredito the lineacredito to set
*/
public void setLineacredito(double lineacredito) {
this.lineacredito = lineacredito;
}
/**
* @return the balancesoles
*/
public double getBalancesoles() {
return balancesoles;
}
/**
* @param balancesoles the balancesoles to set
*/
public void setBalancesoles(double balancesoles) {
this.balancesoles = balancesoles;
}
/**
* @return the balancedolares
*/
public double getBalancedolares() {
return balancedolares;
}
/**
* @param balancedolares the balancedolares to set
*/
public void setBalancedolares(double balancedolares) {
this.balancedolares = balancedolares;
}
/**
* @return the idmodalidadcredito
*/
public int getIdmodalidadcredito() {
return idmodalidadcredito;
}
/**
* @param idmodalidadcredito the idmodalidadcredito to set
*/
public void setIdmodalidadcredito(int idmodalidadcredito) {
this.idmodalidadcredito = idmodalidadcredito;
}
/**
* @return the diascredito
*/
public int getDiascredito() {
return diascredito;
}
/**
* @param diascredito the diascredito to set
*/
public void setDiascredito(int diascredito) {
this.diascredito = diascredito;
}
/**
* @return the restrictivo
*/
public Boolean getRestrictivo() {
return restrictivo;
}
/**
* @param restrictivo the restrictivo to set
*/
public void setRestrictivo(Boolean restrictivo) {
this.restrictivo = restrictivo;
}
/**
* @return the idmonedalistaprecio
*/
public String getIdmonedalistaprecio() {
return idmonedalistaprecio;
}
/**
* @param idmonedalistaprecio the idmonedalistaprecio to set
*/
public void setIdmonedalistaprecio(String idmonedalistaprecio) {
this.idmonedalistaprecio = idmonedalistaprecio;
}
/**
* @return the entregadistribuida
*/
public Boolean getEntregadistribuida() {
return entregadistribuida;
}
/**
* @param entregadistribuida the entregadistribuida to set
*/
public void setEntregadistribuida(Boolean entregadistribuida) {
this.entregadistribuida = entregadistribuida;
}
/**
* @return the entregacentralizada
*/
public Boolean getEntregacentralizada() {
return entregacentralizada;
}
/**
* @param entregacentralizada the entregacentralizada to set
*/
public void setEntregacentralizada(Boolean entregacentralizada) {
this.entregacentralizada = entregacentralizada;
}
/**
* @return the proveedorgiro
*/
public Boolean getProveedorgiro() {
return proveedorgiro;
}
/**
* @param proveedorgiro the proveedorgiro to set
*/
public void setProveedorgiro(Boolean proveedorgiro) {
this.proveedorgiro = proveedorgiro;
}
/**
* @return the creditocontado
*/
public Boolean getCreditocontado() {
return creditocontado;
}
/**
* @param creditocontado the creditocontado to set
*/
public void setCreditocontado(Boolean creditocontado) {
this.creditocontado = creditocontado;
}
/**
* @return the idtipomediodepago
*/
public int getIdtipomediodepago() {
return idtipomediodepago;
}
/**
* @param idtipomediodepago the idtipomediodepago to set
*/
public void setIdtipomediodepago(int idtipomediodepago) {
this.idtipomediodepago = idtipomediodepago;
}
/**
* @return the idcuentacontable
*/
public String getIdcuentacontable() {
return idcuentacontable;
}
/**
* @param idcuentacontable the idcuentacontable to set
*/
public void setIdcuentacontable(String idcuentacontable) {
this.idcuentacontable = idcuentacontable;
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mussoft.model;
import javax.annotation.ManagedBean;
import javax.enterprise.context.RequestScoped;
/**
*
* @author Guery
*/
@ManagedBean
@RequestScoped
public class Persona {
private String pkid;
private String nombre;
private String codigo;
//private String lc;
private String docIdentidad;
private Boolean percepcion;
private Boolean retencion;
private Boolean activo;
private String cuenta;
private String apellidoPaterno;
private String apellidoMaterno;
private String primerNombre;
private String segundoNombre;
private Boolean agenteRetencion;
private Boolean agentePercepcion;
private Boolean extrangero;
private Proveedor objProveedor = new Proveedor();
private Direccion objDireccion = new Direccion();
private TipoDocIdentidad objTipoDocIdentidad = new TipoDocIdentidad();
private TipoPersona objTipoPersona = new TipoPersona();
private TipoTercero objTipoTercero = new TipoTercero();
public Persona(){}
public Persona(String pkid, String nombre, String codigo,String docIdentidad,
Boolean percepcion, Boolean retencion,Boolean activo, String cuenta,
String apellidoPaterno,String apellidoMaterno,String primerNombre,String segundoNombre,
Boolean agenteRetencion,Boolean agentePercepcion,Boolean extrangero) {
this.pkid = pkid;
this.nombre = nombre;
this.codigo = codigo;
//private String lc;
this.docIdentidad = docIdentidad;
this.percepcion = percepcion;
this.retencion = retencion;
this.activo = activo;
this.cuenta = cuenta;
this.apellidoPaterno = apellidoPaterno;
this.apellidoMaterno = apellidoMaterno;
this.primerNombre = primerNombre;
this.segundoNombre = segundoNombre;
this. agenteRetencion = agenteRetencion;
this.agentePercepcion = agentePercepcion;
this.extrangero = extrangero;
}
/**
* @return the pkid
*/
public String getPkid() {
return pkid;
}
/**
* @param pkid the pkid to set
*/
public void setPkid(String pkid) {
this.pkid = pkid;
}
/**
* @return the nombre
*/
public String getNombre() {
return nombre;
}
/**
* @param nombre the nombre to set
*/
public void setNombre(String nombre) {
this.nombre = nombre;
}
/**
* @return the codigo
*/
public String getCodigo() {
return codigo;
}
/**
* @param codigo the codigo to set
*/
public void setCodigo(String codigo) {
this.codigo = codigo;
}
/**
* @return the docIdentidad
*/
public String getDocIdentidad() {
return docIdentidad;
}
/**
* @param docIdentidad the docIdentidad to set
*/
public void setDocIdentidad(String docIdentidad) {
this.docIdentidad = docIdentidad;
}
/**
* @return the percepcion
*/
public Boolean getPercepcion() {
return percepcion;
}
/**
* @param percepcion the percepcion to set
*/
public void setPercepcion(Boolean percepcion) {
this.percepcion = percepcion;
}
/**
* @return the retencion
*/
public Boolean getRetencion() {
return retencion;
}
/**
* @param retencion the retencion to set
*/
public void setRetencion(Boolean retencion) {
this.retencion = retencion;
}
/**
* @return the activo
*/
public Boolean getActivo() {
return activo;
}
/**
* @param activo the activo to set
*/
public void setActivo(Boolean activo) {
this.activo = activo;
}
/**
* @return the cuenta
*/
public String getCuenta() {
return cuenta;
}
/**
* @param cuenta the cuenta to set
*/
public void setCuenta(String cuenta) {
this.cuenta = cuenta;
}
/**
* @return the objProveedor
*/
public Proveedor getObjProveedor() {
return objProveedor;
}
/**
* @param objProveedor the objProveedor to set
*/
public void setObjProveedor(Proveedor objProveedor) {
this.objProveedor = objProveedor;
}
/**
* @return the objDireccion
*/
public Direccion getObjDireccion() {
return objDireccion;
}
/**
* @param objDireccion the objDireccion to set
*/
public void setObjDireccion(Direccion objDireccion) {
this.objDireccion = objDireccion;
}
/**
* @return the objTipoDocIdentidad
*/
public TipoDocIdentidad getObjTipoDocIdentidad() {
return objTipoDocIdentidad;
}
/**
* @param objTipoDocIdentidad the objTipoDocIdentidad to set
*/
public void setObjTipoDocIdentidad(TipoDocIdentidad objTipoDocIdentidad) {
this.objTipoDocIdentidad = objTipoDocIdentidad;
}
/**
* @return the objTipoPersona
*/
public TipoPersona getObjTipoPersona() {
return objTipoPersona;
}
/**
* @param objTipoPersona the objTipoPersona to set
*/
public void setObjTipoPersona(TipoPersona objTipoPersona) {
this.objTipoPersona = objTipoPersona;
}
/**
* @return the objTipoTercero
*/
public TipoTercero getObjTipoTercero() {
return objTipoTercero;
}
/**
* @param objTipoTercero the objTipoTercero to set
*/
public void setObjTipoTercero(TipoTercero objTipoTercero) {
this.objTipoTercero = objTipoTercero;
}
/**
* @return the apellidoPaterno
*/
public String getApellidoPaterno() {
return apellidoPaterno;
}
/**
* @param apellidoPaterno the apellidoPaterno to set
*/
public void setApellidoPaterno(String apellidoPaterno) {
this.apellidoPaterno = apellidoPaterno;
}
/**
* @return the apellidoMaterno
*/
public String getApellidoMaterno() {
return apellidoMaterno;
}
/**
* @param apellidoMaterno the apellidoMaterno to set
*/
public void setApellidoMaterno(String apellidoMaterno) {
this.apellidoMaterno = apellidoMaterno;
}
/**
* @return the primerNombre
*/
public String getPrimerNombre() {
return primerNombre;
}
/**
* @param primerNombre the primerNombre to set
*/
public void setPrimerNombre(String primerNombre) {
this.primerNombre = primerNombre;
}
/**
* @return the segundoNombre
*/
public String getSegundoNombre() {
return segundoNombre;
}
/**
* @param segundoNombre the segundoNombre to set
*/
public void setSegundoNombre(String segundoNombre) {
this.segundoNombre = segundoNombre;
}
/**
* @return the agenteRetencion
*/
public Boolean getAgenteRetencion() {
return agenteRetencion;
}
/**
* @param agenteRetencion the agenteRetencion to set
*/
public void setAgenteRetencion(Boolean agenteRetencion) {
this.agenteRetencion = agenteRetencion;
}
/**
* @return the agentePercepcion
*/
public Boolean getAgentePercepcion() {
return agentePercepcion;
}
/**
* @param agentePercepcion the agentePercepcion to set
*/
public void setAgentePercepcion(Boolean agentePercepcion) {
this.agentePercepcion = agentePercepcion;
}
/**
* @return the extrangero
*/
public Boolean getExtrangero() {
return extrangero;
}
/**
* @param extrangero the extrangero to set
*/
public void setExtrangero(Boolean extrangero) {
this.extrangero = extrangero;
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mussoft.model;
/**
*
* @author Guery
*/
public class TipoDocIdentidad {
private String pkid;
private String codigo;
private String descripcion;
private int longitud;
private String abreviacion;
public TipoDocIdentidad(){}
public TipoDocIdentidad(String pkid,String codigo,String descripcion,int longitud, String abreviacion){
this.pkid = pkid;
this.codigo = codigo;
this.descripcion = descripcion;
this.longitud = longitud;
this.abreviacion = abreviacion;
}
/**
* @return the pkid
*/
public String getPkid() {
return pkid;
}
/**
* @param pkid the pkid to set
*/
public void setPkid(String pkid) {
this.pkid = pkid;
}
/**
* @return the codigo
*/
public String getCodigo() {
return codigo;
}
/**
* @param codigo the codigo to set
*/
public void setCodigo(String codigo) {
this.codigo = codigo;
}
/**
* @return the descripcion
*/
public String getDescripcion() {
return descripcion;
}
/**
* @param descripcion the descripcion to set
*/
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
/**
* @return the longitud
*/
public int getLongitud() {
return longitud;
}
/**
* @param longitud the longitud to set
*/
public void setLongitud(int longitud) {
this.longitud = longitud;
}
/**
* @return the abreviacion
*/
public String getAbreviacion() {
return abreviacion;
}
/**
* @param abreviacion the abreviacion to set
*/
public void setAbreviacion(String abreviacion) {
this.abreviacion = abreviacion;
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mussoft.model;
/**
*
* @author Guery
*/
public class TipoPersona {
private String pkid;
private String descripcion;
public TipoPersona(){}
public TipoPersona(String pkid, String nombre) {
this.pkid = pkid;
this.descripcion = nombre;
}
/**
* @return the descripcion
*/
public String getDescripcion() {
return descripcion;
}
/**
* @param descripcion the descripcion to set
*/
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
/**
* @return the pkid
*/
public String getPkid() {
return pkid;
}
/**
* @param pkid the pkid to set
*/
public void setPkid(String pkid) {
this.pkid = pkid;
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mussoft.model;
/**
*
* @author Guery
*/
public class TipoTercero {
private String pkid;
private String codigo;
private String descripcion;
public TipoTercero(){}
public TipoTercero(String pkid, String codigo, String descripcion){
this.pkid = pkid;
this.codigo = codigo;
this.descripcion = descripcion;
}
/**
* @return the pkid
*/
public String getPkid() {
return pkid;
}
/**
* @param pkid the pkid to set
*/
public void setPkid(String pkid) {
this.pkid = pkid;
}
/**
* @return the codigo
*/
public String getCodigo() {
return codigo;
}
/**
* @param codigo the codigo to set
*/
public void setCodigo(String codigo) {
this.codigo = codigo;
}
/**
* @return the descripcion
*/
public String getDescripcion() {
return descripcion;
}
/**
* @param descripcion the descripcion to set
*/
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
}
-------------------------------------------------------------------------
tengo el controlador
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mussoft.controller;
import com.mussoft.model.Persona;
import com.mussoft.util.Conexion;
import javax.inject.Named;
import javax.enterprise.context.SessionScoped;
import java.io.Serializable;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.ManagedBean;
import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;
/**
*
* @author Guery
*/
@Named(value = "proveedorController")
@SessionScoped
@ManagedBean
@ViewScoped
public class ProveedorController implements Serializable{
private Connection con;
private List listaProveedor = new ArrayList();
public ProveedorController(){
//listar();
}
public void listar(){
Conexion obj = new Conexion();
try {
String sql = "SELECT p.pkid, p.Codigo,t.Descripcion,p.Nombre,p.ApellidoPaterno,p.ApellidoMaterno,\n" +
"p.PrimerNombre,p.SegundoNombre, d.Descripcion, ti.Descripcion,\n" +
"p.Activo, p.AgenteRetencion, p.AgentePercepcion,p.Extranjero,\n" +
"pr.EntregaCentralizada, pr.ProveedorGiro, pr.EntregaDistribuida\n" +
"FROM persona p, proveedor pr, TIPOTERCERO t, direccion d, TipoDocIdentidad ti\n" +
"WHERE (p.pkid = '1768') and (p.pkid = pr.pkid) and (p.IDTipoTercero = t.pkid) and \n" +
"(p.pkid = d.IDPersona) and (p.IDTipoDocIdentidad = ti.PKID)";
Connection intCon = obj.AbrirDB();
setCon(intCon);
Statement st = getCon().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
ResultSet rs = st.executeQuery(sql);
rs.last();
int rows = rs.getRow();
listaProveedor.clear();
rs.first();
for(int i = 0; i < rows; i++){
//while ( rs.next() ){
Persona bean = new Persona();
bean.setPkid(rs.getString(1));
bean.setCodigo(rs.getString(2));
bean.getObjTipoTercero().setDescripcion(rs.getString(3));
bean.setNombre(rs.getString(4));
bean.setApellidoPaterno(rs.getString(5));
bean.setApellidoMaterno(rs.getString(6));
bean.setPrimerNombre(rs.getString(7));
bean.setSegundoNombre(rs.getString(8));
bean.getObjDireccion().setDescripcion(rs.getString(9));
bean.getObjTipoDocIdentidad().setDescripcion(rs.getString(10));
bean.setActivo(rs.getBoolean(11));
bean.setAgenteRetencion(rs.getBoolean(12));
bean.setAgentePercepcion(rs.getBoolean(13));
bean.setExtrangero(rs.getBoolean(14));
bean.getObjProveedor().setEntregacentralizada(rs.getBoolean(15));
bean.getObjProveedor().setProveedorgiro(rs.getBoolean(16));
bean.getObjProveedor().setEntregadistribuida(rs.getBoolean(17));
System.out.println("==> " + rs.getString(15) + " " + rs.getString(16));
listaProveedor.add(bean);
/*
Iterator it = listaProveedor.iterator();
while (it.hasNext()) {
System.out.println(" x--> "+ it.next());
}
*/
rs.next();
}
if(rs!=null){
rs.close();
st.close();
}
} catch (SQLException e) {
e.printStackTrace();
}
}
public static void main(String []args){
ProveedorController obj = new ProveedorController();
obj.listar();
}
/**
* @return the con
*/
public Connection getCon() {
return con;
}
/**
* @param con the con to set
*/
public void setCon(Connection con) {
this.con = con;
}
/**
* @return the listaProveedor
*/
public List getListaProveedor() {
return listaProveedor;
}
/**
* @param listaProveedor the listaProveedor to set
*/
public void setListaProveedor(List listaProveedor) {
this.listaProveedor = listaProveedor;
}
}
y no me muesta los datos favor que estoy haciendo mal