javasf@googlegroups.com
[Top] [All Lists]

Re: [javasf] java.lang.NumberFormatException.forInputString

Subject: Re: [javasf] java.lang.NumberFormatException.forInputString
From: eduardo borges
Date: Tue, 23 Mar 2010 13:19:23 -0300
Era só pra fazer um teste besta, acabei esquecendo de tirar o import..
esse alerta é simplesmente quando o construtur for chamado ele chamar o metodo aviso(), assim então carregar os List<Credito>

Em 23 de março de 2010 12:33, Davinir F Campos Jr <davinir.jr@xxxxxxxxx> escreveu:
Onde você executa Alerta.aviso() ?
Qual o escopo do mb Alerta ?
Curiosidade mórbida: o que é que tá fazendo o import do javax.swing.JOptionPane no seu código? :-)

[ ]s
Davinir

Em 23 de março de 2010 09:27, eduardo borges <duca86@xxxxxxxxx> escreveu:
Eu alterei mais ainda permanece o erro...

Em 23 de março de 2010 08:33, Bruno Maomeh <brunomaomeh@xxxxxxxxx> escreveu:

List<Credito> retorno = _business.listar();
_bussiness.listar() não te retorna um Vector? talvez esteja ai o problema..

Em 23 de março de 2010 01:26, eduardo borges <duca86@xxxxxxxxx> escreveu:
e a classe alerta que emiti os dados na tela

package br.estudo.alarm.controller;

import java.util.List;

import javax.swing.JOptionPane;

import br.estudo.bussines.CreditoDaoImp;
import br.estudo.model.Credito;

public class Alerta {
public String alerta;
protected List<Credito> _credito;
public CreditoDaoImp _business;
public boolean msg_credit = false;

// getters and setters

public boolean isMsg_credit() {
return msg_credit;
}

public void setMsg_credit(boolean msgCredit) {
msg_credit = msgCredit;
}

public List<Credito> getCredito() {
   
return _credito;
}

public void setCredito(List<Credito> credito) {
this._credito = credito;
}

// constructor
public Alerta() {
_business = new CreditoDaoImp();
   Aviso();
}

public String getAlerta() {
return alerta;
}

public void setAlerta(String alerta) {
this.alerta = alerta;
}

public void Aviso() {
List<Credito> retorno = _business.listar();
   _credito=retorno;
   
}
}


Em 22 de março de 2010 10:02, rondinelle pessoa <rondinellepessoa@xxxxxxxxx> escreveu:
Cara me passa o metodo credito e o select que ta trazendo essa lista.

Em 20 de março de 2010 13:11, epontes <duca86@xxxxxxxxx> escreveu:
Olá Amigos,

estou precisando de uma forcinha aqui nesse erro, estou tentando
popular um dataTable com resultado de uma pesquisa no banco de dados,
ou seja, fazendo um select * from tabela... o erro que me aparece é o
java.lang.NumberFormatException.forInputString .... Obrigado pela
atenção!!!


meu código é esse da dataTable.

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
<title>Home</title>
</head>
<body>
<f:view>
       <h:form>
               <h:panelGrid>
                       <h:dataTable var="credit" value="#{Alerta.credito}">

               <h:column>
                                       <h:outputText  value="#{credit.id}">

                   </h:outputText>
                               </h:column>

                       </h:dataTable>
               </h:panelGrid>
       </h:form>
</f:view>
</body>
</html>

--
http://groups.google.com/group/javasf

You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx

To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
'“As idéias simples só estão ao alcance de espíritos complexos.”

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
'“As idéias simples só estão ao alcance de espíritos complexos.”

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
'“As idéias simples só estão ao alcance de espíritos complexos.”

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
<Prev in Thread] Current Thread [Next in Thread>