Hi !
I'm using exception handling (by annotation and / or pages.xml) of Seam, but
when an exception is launched, the classes that are in long-running
conversation are discarded.
Why this happens?
|
| /*
| * Exception class
| */
| @Redirect(viewId="/module/anypage.xhtml", message="Unexpected error")
| public class NoSelectionException extends RuntimeException{
|
|
| private static final String MESSAGE = "Nenhum dado foi selecionado";
| private String keyDefault = "error.nenhumDadoSelecionado";
|
| private ArrayList keys = new ArrayList();
|
|
| public NoSelectionException ()
| {
| super(MESSAGE);
|
| }
|
| //more codes
| ....
|
|
|
| /*
| * Service class
| */
|
| @Name("paService")
| @AutoCreate
| public class PaService {
|
| public String delete(List<Pa> pasSelecteds) {
|
| if (pasSelecteds == null || pasSelecteds.size() == 0)
| throw new NoSelectionException();
|
| paRepository.removePas(pasSelecteds);
|
| return "exibir";
| }
|
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120074#4120074
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120074
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user