Cannot find symbol symbol: method name() Bean

0 respostas
E

Pessoal,

Fiz um ManagedBean da forma abaixo, porem esta dando erro aqui
cannot find symbol
symbol: method name()

@ManagedBean(name="fileUploadController")
@ManagedBean(name="fileUploadController")
@ViewScoped
public class FileUploadController implements Serializable{
    private String destination="C://Users//Luciano.tulio//Desktop//Nova//";//aqui vc seta onde quer gravar o arquivo  
    
       public void upload(FileUploadEvent event) {    
        FacesMessage msg = new FacesMessage("Success! ", event.getFile().getFileName() + " is uploaded.");    
        FacesContext.getCurrentInstance().addMessage(null, msg);  
                
        try {  
            copyFile(event.getFile().getFileName(), event.getFile().getInputstream());  
        } catch (IOException e) {  
            e.printStackTrace();  
        }  
  
    } 

    private void copyFile(String fileName, InputStream inputstream) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
Criado 18 de maio de 2013
Respostas 0
Participantes 1