git-svn-id: https://svn.coded.pt/svn/SIPRP@1539 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Diogo Neves 15 years ago
parent 263f9e0971
commit 835704810c

@ -109,36 +109,30 @@ public class Header extends AbstractFragmentBean {
public void destroy() { public void destroy() {
} }
public String lnkLogout_action() { public String lnkLogout_action()
// TODO: Process the action. Return value is a navigation {
// case name where null will return to the same page. FacesContext fc = getFacesContext();
FacesContext fc = getFacesContext(); try
try {
{ JSFUtils.logout( fc );
JSFUtils.logout(fc);
//JSFUtils.navigateTo(fc, "login");
try try
{ {
//JSFUtils.redirect(fc, "http://localhost:8084/AnaliseAcidentesTrabalho/faces/Login.jsp"); JSFUtils.redirect( fc, Global.ANALISE_ACIDENTES_URL + "Login.jsp" );
JSFUtils.redirect(fc, Global.ANALISE_ACIDENTES_URL + "Login.jsp");
} }
catch(Exception ex) catch ( Exception ex )
{ {
ErrorLogger.logException( ex ); ErrorLogger.logException( ex );
} }
}
} catch ( Exception ex )
catch(Exception ex) {
{ ErrorLogger.logException( ex );
ErrorLogger.logException( ex ); }
}
return null; return null;
} }
public String lnkAnaliseAcidentes_action() { public String lnkAnaliseAcidentes_action()
// TODO: Process the action. Return value is a navigation {
// case name where null will return to the same page.
FacesContext fc = getFacesContext(); FacesContext fc = getFacesContext();
SessionBean1 session = JSFUtils.getSessionBean(fc); SessionBean1 session = JSFUtils.getSessionBean(fc);
Utilizador u = session.getCurrentUser(); Utilizador u = session.getCurrentUser();

Loading…
Cancel
Save