Jump to content
Fórum Script Brasil
  • 0

"id to load is required for loading"


dennnis

Question

Boa tarde pessoal,

Estou com um problema aqui no sistema que estou estudando, é um sistema de controle financeiro.

Eu criei as categorias, e consigo selecionar e salvar, mas quando eu tento excluir, eu recebo essa exception.

Sep 19, 2011 12:26:06 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute

WARNING: #{categoriaBean.excluir }: java.lang.IllegalArgumentException: id to load is required for loading
javax.faces.FacesException: #{categoriaBean.excluir }: java.lang.IllegalArgumentException: id to load is required for loading
onde eu chamo o bean.excluir é aqui
<p:commandButton value="Excluir" action="#{categoriaBean.excluir }" update="edicao, arvore"/>
e aqui está meu excluir()
public void excluir(){
    CategoriaRN categoriaRN = new CategoriaRN();
    categoriaRN.excluir(this.editada);

    this.editada = null;
    this.mostraEdicao = false;
    this.categoriasTree = null;
    this.categoriasSelect = null;
    
    
}

Alguém tem ideía do q eu posso estar errando?

Obrigado e abraços!

Edited by dennnis
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...