Hi, I would to use <from-outcome> in faces-config.xml for errors's management:
<navigation-rule>
<description>Pagina di errore</description>
<navigation-case>
<from-outcome>errore</from-outcome>
<to-view-id>/errore.jsp</to-view-id>
</navigation-case>
</navigation-rule>
I thought to use a "return" in my class that manage event:
public
String deleteUser(String id, Map session) throws NamingException, SQLException,Errore{
try{
...
String sql="DELETE FROM Users WHERE ID="+id;
return "";
}catch(Exception e)
{ return "errore";
}
.....
But, doesn't work it!
How do I do?