Ajuda com metodo em jsf

tenho o seguinte metodo:


public void carregaUsuario (ActionEvent event){				
		 UIParameter parameter = (UIParameter) event.getComponent().findComponent("currentUser");  
		    String  login = parameter.getValue().toString() ;  
		    System.out.println("-->> " + login + " <<--"); 
		System.out.println(" o valor od parametro capturado é.....:"+login);
		 IDaoUsuario idao = new DaoUsuario();
		 Usuario u = idao.checarLogin(login);
		 System.out.println(" o valor do  usuario login   é.....:"+u.getLogin());
		pedido.setUsuarioid(u);		
		System.out.println(" o valor do id do usuario  capturado é.....:"+u.getUsuarioid());
	
	}

e ele ta assim na pagina


	<h:commandLink value="jdsghsdjkg" actionListener="#{pedido.carregaUsuario}" >
							<f:param  id="currentUser" value="#{usuario.usuario.login}" name="currentUser" />
						</h:commandLink>

Estou tendo o seguinte erro:


5:58:28,000 ERROR [STDERR] 24/04/2008 15:58:28 javax.faces.event.MethodExpressionActionListener processAction
SEVERE: Received 'org.apache.jasper.el.JspMethodNotFoundException' when invoking action listener '#{pedido.carregaUsuario}' for component 'j_id_jsp_1794719629_48'
15:58:28,000 ERROR [STDERR] 24/04/2008 15:58:28 javax.faces.event.MethodExpressionActionListener processAction
SEVERE: org.apache.jasper.el.JspMethodNotFoundException: /view/pedidoVenda/velhapagina.jsp(197,6) '#{pedido.carregaUsuario}' Method not found: com.Lgweb.Tcc.Controller.ControlPedido@182ea1e.carregaUsuario(javax.faces.event.ActionEvent)
	

O que significa este maldito ERRO?
Alguem pode dar uma luz?
t+

Cara, seguinte:

  • Você declarou seu bean “pedido” no faces-config.xml?

Se sim, tente isso:

  • Muda o seu método pra String, faz ele retornar “”;
  • Coloca ele no action ao invés de usar um actionListener;