Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro na linha do commandButton do arquivo autor.xhtml

No meu arquivo autor.xhtml, embora esteja inserindo os autores, aparece um erro na linha do commandButton como mostrado abaixo, utilizo o eclipse Kepler o que pode ser?

<h:commandButton value="Gravar" action="#{autorBean.gravar}" />

Method must have signature "String method(), String method(), String method(String), String method(String, String), String method(String, String, String), String method(String, String, String, String), String method(String, String, String, String, String), String method(String, String, String, String, String, String), String method(String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String)" but has signature "void method()"

1 resposta
solução!

Pode ignorar esse problema. Ë um bug no validador do Eclipse que não interfere no seu projeto.

O Eclipse reclama dos métodos "actions" que retornam void e não String (e na verdade não tem problema devolver void) .

É possível desabilitar essa validação:

Vá para Preferences -> Validation e desabilite:

1) Facelet HTML Validator
2) JSF View Application Configuration Validator
3) JSF View Validator