forked from Coded/SIPRP
11/10/2008
git-svn-id: https://svn.coded.pt/svn/SIPRP@775 bb69d46d-e84e-40c8-a05a-06db0d633741lxbfYeaa
parent
67bac141fe
commit
c0edf313c7
@ -1,8 +1,8 @@
|
||||
build.xml.data.CRC32=0b61db7f
|
||||
build.xml.data.CRC32=a8b7045a
|
||||
build.xml.script.CRC32=fa3993b7
|
||||
build.xml.stylesheet.CRC32=cfd7ba16
|
||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||
nbproject/build-impl.xml.data.CRC32=0b61db7f
|
||||
nbproject/build-impl.xml.data.CRC32=a8b7045a
|
||||
nbproject/build-impl.xml.script.CRC32=64f15e59
|
||||
nbproject/build-impl.xml.stylesheet.CRC32=8926891b
|
||||
|
||||
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package db.providers;
|
||||
|
||||
import db.*;
|
||||
import db.entidades.Utilizador;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Statement;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class UtilizadoresDataProvider extends GenericDataProvider{
|
||||
|
||||
public Utilizador getUtilizador(Integer id) throws Exception
|
||||
{
|
||||
Utilizador u = new Utilizador();
|
||||
Statement st = createStatement();
|
||||
String sql = "SELECT * FROM utilizadores WHERE id = " + id;
|
||||
ResultSet rs = st.executeQuery(sql);
|
||||
rs.first();
|
||||
u.setId(new Integer(rs.getInt("id")));
|
||||
u.setLogin(rs.getString("login"));
|
||||
u.setPassword(rs.getString("password"));
|
||||
u.setData_password(rs.getDate("data_password"));
|
||||
u.setEmail(rs.getString("email"));
|
||||
u.setEmpresa_id(new Integer(rs.getInt("empresa_id")));
|
||||
u.setEstabelecimento_id(new Integer(rs.getInt("estabelecimento_id")));
|
||||
u.setAdministrador(rs.getString("administrador"));
|
||||
u.setTipo(new Integer(rs.getInt("tipo")));
|
||||
u.setNumero_cedula(rs.getString("numero_cedula"));
|
||||
u.setCap(rs.getString("cap"));
|
||||
u.setNome(rs.getString("nome"));
|
||||
u.setMedico_id(new Integer(rs.getInt("medico_id")));
|
||||
u.setFuncionario_hst_id(new Integer(rs.getInt("funcionario_hst_id")));
|
||||
u.setActivo(rs.getString("activo"));
|
||||
u.setResponsavel_loja(rs.getString("responsavel_loja"));
|
||||
u.setGestor_geral(rs.getString("gestor_geral"));
|
||||
u.setApagado(rs.getString("apagado"));
|
||||
return u;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package phaselistener;
|
||||
|
||||
import javax.faces.application.NavigationHandler;
|
||||
import javax.faces.component.UIViewRoot;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.event.PhaseEvent;
|
||||
import javax.faces.event.PhaseId;
|
||||
import javax.faces.event.PhaseListener;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import planosactuacao.SessionBean1;
|
||||
import utils.JSFHTTPUtils;
|
||||
import utils.JSFUtils;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class MainPhaseListener implements PhaseListener{
|
||||
private boolean firstEntry = true;
|
||||
|
||||
public void afterPhase(PhaseEvent pe) {
|
||||
if(pe.getPhaseId() == PhaseId.RENDER_RESPONSE)
|
||||
{
|
||||
FacesContext fc = pe.getFacesContext();
|
||||
SessionBean1 session = JSFUtils.getSessionBean(fc);
|
||||
String view = fc.getViewRoot().getViewId();
|
||||
if(view.matches("/EditarPlano.jsp"))
|
||||
{
|
||||
session.setDisableMenu(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
session.setDisableMenu(false);
|
||||
}
|
||||
System.out.println("VIEW : " + view);
|
||||
}
|
||||
}
|
||||
|
||||
public void beforePhase(PhaseEvent pe) {
|
||||
if(pe.getPhaseId() == PhaseId.RENDER_RESPONSE)
|
||||
{
|
||||
FacesContext fc = pe.getFacesContext();
|
||||
SessionBean1 session = JSFUtils.getSessionBean(fc);
|
||||
String referer = JSFHTTPUtils.getReferer(pe.getFacesContext());
|
||||
System.out.println("REFERER >>" + referer + "<<");
|
||||
|
||||
//check if comes from AnalisesAcidentes. If so, set loggedIn to true:
|
||||
if(referer.indexOf("AnaliseAcidentes") != -1)
|
||||
{
|
||||
session.setLoggedIn(true);
|
||||
String user = JSFUtils.getRequestParameter(fc, "user");
|
||||
System.out.println("USER >" + user.toString() + "<");
|
||||
}
|
||||
|
||||
|
||||
//Determin Session Time out
|
||||
|
||||
HttpServletRequest req = (HttpServletRequest) fc.getExternalContext().getRequest();
|
||||
UIViewRoot view = fc.getViewRoot();
|
||||
|
||||
if(!req.isRequestedSessionIdValid() && view.getViewId().indexOf("Login") == -1 ){
|
||||
NavigationHandler nh = fc.getApplication().getNavigationHandler();
|
||||
nh.handleNavigation(fc, null, "login");
|
||||
}
|
||||
|
||||
//Determin if user is logged in
|
||||
//HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);
|
||||
|
||||
//SessionBean1 session = JSFUtils.getSessionBean(fc);
|
||||
boolean loggedIn = session.isLoggedIn();
|
||||
System.out.println("LOGGED IN : " + loggedIn);
|
||||
if(!loggedIn && view.getViewId().indexOf("Login") == -1 ){
|
||||
NavigationHandler nh = fc.getApplication().getNavigationHandler();
|
||||
nh.handleNavigation(fc, null, "login");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public PhaseId getPhaseId() {
|
||||
return PhaseId.ANY_PHASE;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Dummy.java
|
||||
*
|
||||
* Created on Oct 6, 2008, 10:43:13 AM
|
||||
*/
|
||||
|
||||
package planosactuacao;
|
||||
|
||||
import com.sun.rave.web.ui.appbase.AbstractPageBean;
|
||||
import com.sun.webui.jsf.component.Calendar;
|
||||
import com.sun.webui.jsf.component.TextArea;
|
||||
import com.sun.webui.jsf.component.TextField;
|
||||
import com.sun.webui.jsf.model.DefaultTableDataProvider;
|
||||
import javax.faces.component.html.HtmlPanelGrid;
|
||||
import tabledataproviders.*;
|
||||
import javax.faces.FacesException;
|
||||
|
||||
/**
|
||||
* <p>Page bean that corresponds to a similarly named JSP page. This
|
||||
* class contains component definitions (and initialization code) for
|
||||
* all components that you have defined on this page, as well as
|
||||
* lifecycle methods and event handlers where you may add behavior
|
||||
* to respond to incoming events.</p>
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class Dummy extends AbstractPageBean {
|
||||
// <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
|
||||
|
||||
/**
|
||||
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
|
||||
* This method is automatically generated, so any user-specified code inserted
|
||||
* here is subject to being replaced.</p>
|
||||
*/
|
||||
private void _init() throws Exception {
|
||||
}
|
||||
private HtmlPanelGrid grid = new HtmlPanelGrid();
|
||||
|
||||
public HtmlPanelGrid getGrid() {
|
||||
return grid;
|
||||
}
|
||||
|
||||
public void setGrid(HtmlPanelGrid hpg) {
|
||||
this.grid = hpg;
|
||||
}
|
||||
|
||||
// </editor-fold>
|
||||
|
||||
/**
|
||||
* <p>Construct a new Page bean instance.</p>
|
||||
*/
|
||||
public Dummy() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called whenever a page is navigated to,
|
||||
* either directly via a URL, or indirectly via page navigation.
|
||||
* Customize this method to acquire resources that will be needed
|
||||
* for event handlers and lifecycle methods, whether or not this
|
||||
* page is performing post back processing.</p>
|
||||
*
|
||||
* <p>Note that, if the current request is a postback, the property
|
||||
* values of the components do <strong>not</strong> represent any
|
||||
* values submitted with this request. Instead, they represent the
|
||||
* property values that were saved for this view when it was rendered.</p>
|
||||
*/
|
||||
@Override
|
||||
public void init() {
|
||||
// Perform initializations inherited from our superclass
|
||||
super.init();
|
||||
// Perform application initialization that must complete
|
||||
// *before* managed components are initialized
|
||||
// TODO - add your own initialiation code here
|
||||
|
||||
// <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
|
||||
// Initialize automatically managed components
|
||||
// *Note* - this logic should NOT be modified
|
||||
try {
|
||||
_init();
|
||||
} catch (Exception e) {
|
||||
log("Dummy Initialization Failure", e);
|
||||
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
|
||||
}
|
||||
|
||||
// </editor-fold>
|
||||
// Perform application initialization that must complete
|
||||
// *after* managed components are initialized
|
||||
// TODO - add your own initialization code here
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called after the component tree has been
|
||||
* restored, but before any event processing takes place. This method
|
||||
* will <strong>only</strong> be called on a postback request that
|
||||
* is processing a form submit. Customize this method to allocate
|
||||
* resources that will be required in your event handlers.</p>
|
||||
*/
|
||||
@Override
|
||||
public void preprocess() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called just before rendering takes place.
|
||||
* This method will <strong>only</strong> be called for the page that
|
||||
* will actually be rendered (and not, for example, on a page that
|
||||
* handled a postback and then navigated to a different page). Customize
|
||||
* this method to allocate resources that will be required for rendering
|
||||
* this page.</p>
|
||||
*/
|
||||
@Override
|
||||
public void prerender() {
|
||||
Calendar cal = new Calendar();
|
||||
cal.setDateFormatPattern("dd-MM-yyyy");
|
||||
|
||||
grid.getChildren().add(cal);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called after rendering is completed for
|
||||
* this request, if <code>init()</code> was called (regardless of whether
|
||||
* or not this was the page that was actually rendered). Customize this
|
||||
* method to release resources acquired in the <code>init()</code>,
|
||||
* <code>preprocess()</code>, or <code>prerender()</code> methods (or
|
||||
* acquired during execution of an event handler).</p>
|
||||
*/
|
||||
@Override
|
||||
public void destroy() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Return a reference to the scoped data bean.</p>
|
||||
*
|
||||
* @return reference to the scoped data bean
|
||||
*/
|
||||
protected ApplicationBean1 getApplicationBean1() {
|
||||
return (ApplicationBean1) getBean("ApplicationBean1");
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Return a reference to the scoped data bean.</p>
|
||||
*
|
||||
* @return reference to the scoped data bean
|
||||
*/
|
||||
protected RequestBean1 getRequestBean1() {
|
||||
return (RequestBean1) getBean("RequestBean1");
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Return a reference to the scoped data bean.</p>
|
||||
*
|
||||
* @return reference to the scoped data bean
|
||||
*/
|
||||
protected SessionBean1 getSessionBean1() {
|
||||
return (SessionBean1) getBean("SessionBean1");
|
||||
}
|
||||
|
||||
public String lnkAnaliseAcidentes_action() {
|
||||
// TODO: Process the action. Return value is a navigation
|
||||
// case name where null will return to the same page.
|
||||
return null;
|
||||
}
|
||||
|
||||
public String lnkLogout_action() {
|
||||
// TODO: Process the action. Return value is a navigation
|
||||
// case name where null will return to the same page.
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,139 @@
|
||||
/*
|
||||
* Footer.java
|
||||
*
|
||||
* Created on Oct 6, 2008, 3:01:32 PM
|
||||
*/
|
||||
|
||||
package planosactuacao;
|
||||
|
||||
import com.sun.rave.web.ui.appbase.AbstractPageBean;
|
||||
import javax.faces.FacesException;
|
||||
|
||||
/**
|
||||
* <p>Page bean that corresponds to a similarly named JSP page. This
|
||||
* class contains component definitions (and initialization code) for
|
||||
* all components that you have defined on this page, as well as
|
||||
* lifecycle methods and event handlers where you may add behavior
|
||||
* to respond to incoming events.</p>
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class Footer extends AbstractPageBean {
|
||||
// <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
|
||||
|
||||
/**
|
||||
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
|
||||
* This method is automatically generated, so any user-specified code inserted
|
||||
* here is subject to being replaced.</p>
|
||||
*/
|
||||
private void _init() throws Exception {
|
||||
}
|
||||
|
||||
// </editor-fold>
|
||||
|
||||
/**
|
||||
* <p>Construct a new Page bean instance.</p>
|
||||
*/
|
||||
public Footer() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called whenever a page is navigated to,
|
||||
* either directly via a URL, or indirectly via page navigation.
|
||||
* Customize this method to acquire resources that will be needed
|
||||
* for event handlers and lifecycle methods, whether or not this
|
||||
* page is performing post back processing.</p>
|
||||
*
|
||||
* <p>Note that, if the current request is a postback, the property
|
||||
* values of the components do <strong>not</strong> represent any
|
||||
* values submitted with this request. Instead, they represent the
|
||||
* property values that were saved for this view when it was rendered.</p>
|
||||
*/
|
||||
@Override
|
||||
public void init() {
|
||||
// Perform initializations inherited from our superclass
|
||||
super.init();
|
||||
// Perform application initialization that must complete
|
||||
// *before* managed components are initialized
|
||||
// TODO - add your own initialiation code here
|
||||
|
||||
// <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
|
||||
// Initialize automatically managed components
|
||||
// *Note* - this logic should NOT be modified
|
||||
try {
|
||||
_init();
|
||||
} catch (Exception e) {
|
||||
log("Footer Initialization Failure", e);
|
||||
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
|
||||
}
|
||||
|
||||
// </editor-fold>
|
||||
// Perform application initialization that must complete
|
||||
// *after* managed components are initialized
|
||||
// TODO - add your own initialization code here
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called after the component tree has been
|
||||
* restored, but before any event processing takes place. This method
|
||||
* will <strong>only</strong> be called on a postback request that
|
||||
* is processing a form submit. Customize this method to allocate
|
||||
* resources that will be required in your event handlers.</p>
|
||||
*/
|
||||
@Override
|
||||
public void preprocess() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called just before rendering takes place.
|
||||
* This method will <strong>only</strong> be called for the page that
|
||||
* will actually be rendered (and not, for example, on a page that
|
||||
* handled a postback and then navigated to a different page). Customize
|
||||
* this method to allocate resources that will be required for rendering
|
||||
* this page.</p>
|
||||
*/
|
||||
@Override
|
||||
public void prerender() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called after rendering is completed for
|
||||
* this request, if <code>init()</code> was called (regardless of whether
|
||||
* or not this was the page that was actually rendered). Customize this
|
||||
* method to release resources acquired in the <code>init()</code>,
|
||||
* <code>preprocess()</code>, or <code>prerender()</code> methods (or
|
||||
* acquired during execution of an event handler).</p>
|
||||
*/
|
||||
@Override
|
||||
public void destroy() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Return a reference to the scoped data bean.</p>
|
||||
*
|
||||
* @return reference to the scoped data bean
|
||||
*/
|
||||
protected ApplicationBean1 getApplicationBean1() {
|
||||
return (ApplicationBean1) getBean("ApplicationBean1");
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Return a reference to the scoped data bean.</p>
|
||||
*
|
||||
* @return reference to the scoped data bean
|
||||
*/
|
||||
protected RequestBean1 getRequestBean1() {
|
||||
return (RequestBean1) getBean("RequestBean1");
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Return a reference to the scoped data bean.</p>
|
||||
*
|
||||
* @return reference to the scoped data bean
|
||||
*/
|
||||
protected SessionBean1 getSessionBean1() {
|
||||
return (SessionBean1) getBean("SessionBean1");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,170 @@
|
||||
/*
|
||||
* Header.java
|
||||
*
|
||||
* Created on Oct 6, 2008, 10:35:36 AM
|
||||
*/
|
||||
|
||||
package planosactuacao;
|
||||
|
||||
import com.sun.rave.web.ui.appbase.AbstractFragmentBean;
|
||||
import db.entidades.Utilizador;
|
||||
import global.Global;
|
||||
import javax.faces.FacesException;
|
||||
import javax.faces.context.FacesContext;
|
||||
import utils.JSFHTTPUtils;
|
||||
import utils.JSFUtils;
|
||||
|
||||
/**
|
||||
* <p>Fragment bean that corresponds to a similarly named JSP page
|
||||
* fragment. This class contains component definitions (and initialization
|
||||
* code) for all components that you have defined on this fragment, as well as
|
||||
* lifecycle methods and event handlers where you may add behavior
|
||||
* to respond to incoming events.</p>
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class Header extends AbstractFragmentBean {
|
||||
// <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
|
||||
|
||||
/**
|
||||
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
|
||||
* This method is automatically generated, so any user-specified code inserted
|
||||
* here is subject to being replaced.</p>
|
||||
*/
|
||||
private void _init() throws Exception {
|
||||
}
|
||||
// </editor-fold>
|
||||
|
||||
public Header() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called whenever a page containing
|
||||
* this page fragment is navigated to, either directly via a URL,
|
||||
* or indirectly via page navigation. Override this method to acquire
|
||||
* resources that will be needed for event handlers and lifecycle methods.</p>
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override
|
||||
public void init() {
|
||||
// Perform initializations inherited from our superclass
|
||||
super.init();
|
||||
// Perform application initialization that must complete
|
||||
// *before* managed components are initialized
|
||||
// TODO - add your own initialiation code here
|
||||
|
||||
FacesContext fc = getFacesContext();
|
||||
String referer = JSFHTTPUtils.getReferer(fc);
|
||||
System.out.println("HEADER - REFERER : " + referer);
|
||||
|
||||
// <editor-fold defaultstate="collapsed" desc="Visual-Web-managed Component Initialization">
|
||||
// Initialize automatically managed components
|
||||
// *Note* - this logic should NOT be modified
|
||||
try {
|
||||
_init();
|
||||
} catch (Exception e) {
|
||||
log("Page1 Initialization Failure", e);
|
||||
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
|
||||
}
|
||||
|
||||
// </editor-fold>
|
||||
// Perform application initialization that must complete
|
||||
// *after* managed components are initialized
|
||||
// TODO - add your own initialization code here
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called after rendering is completed for
|
||||
* this request, if <code>init()</code> was called. Override this
|
||||
* method to release resources acquired in the <code>init()</code>
|
||||
* resources that will be needed for event handlers and lifecycle methods.</p>
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override
|
||||
public void destroy() {
|
||||
}
|
||||
|
||||
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();
|
||||
try
|
||||
{
|
||||
JSFUtils.logout(fc);
|
||||
//JSFUtils.navigateTo(fc, "login");
|
||||
try
|
||||
{
|
||||
JSFUtils.redirect(fc, "http://localhost:8084/AnaliseAcidentesTrabalho/faces/Login.jsp");
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
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();
|
||||
SessionBean1 session = JSFUtils.getSessionBean(fc);
|
||||
Utilizador u = session.getCurrentUser();
|
||||
|
||||
String url = Global.ANALISE_ACIDENTES_URL;
|
||||
int tipo = u.getTipo().intValue();
|
||||
switch(tipo)
|
||||
{
|
||||
case Global.RESPONSAVEL_SEGURANCA:
|
||||
url += "FormSeguranca.jsp?user=" + u.getId().intValue();
|
||||
break;
|
||||
|
||||
case Global.RH:
|
||||
url += "FormRH.jsp?user=" + u.getId().intValue();
|
||||
break;
|
||||
|
||||
case Global.TECNICO_HS:
|
||||
url += "FormHS.jsp?user=" + u.getId().intValue();
|
||||
break;
|
||||
|
||||
case Global.GESTOR:
|
||||
url += "FormGestor.jsp?user=" + u.getId().intValue();
|
||||
break;
|
||||
|
||||
case Global.DIRECTOR_LOJA:
|
||||
url += "FormGestor.jsp?user=" + u.getId().intValue();
|
||||
break;
|
||||
case Global.DIRECTOR_GERAL_RH:
|
||||
url += "FormDirGerRh.jsp?user=" + u.getId().intValue();
|
||||
break;
|
||||
|
||||
case Global.DIRECTOR_SIPRP:
|
||||
url += "FormDirSiprp.jsp?user=" + u.getId().intValue();
|
||||
break;
|
||||
|
||||
case Global.DIRECTOR_NACIONAL_SEGURANCA:
|
||||
url += "FormGestor.jsp?user=" + u.getId().intValue();
|
||||
break;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
JSFUtils.redirect(fc.getCurrentInstance(), url);
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,139 @@
|
||||
/*
|
||||
* ViewPlano.java
|
||||
*
|
||||
* Created on Oct 20, 2008, 10:39:31 AM
|
||||
*/
|
||||
|
||||
package planosactuacao;
|
||||
|
||||
import com.sun.rave.web.ui.appbase.AbstractPageBean;
|
||||
import javax.faces.FacesException;
|
||||
|
||||
/**
|
||||
* <p>Page bean that corresponds to a similarly named JSP page. This
|
||||
* class contains component definitions (and initialization code) for
|
||||
* all components that you have defined on this page, as well as
|
||||
* lifecycle methods and event handlers where you may add behavior
|
||||
* to respond to incoming events.</p>
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class ViewPlano extends AbstractPageBean {
|
||||
// <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
|
||||
|
||||
/**
|
||||
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
|
||||
* This method is automatically generated, so any user-specified code inserted
|
||||
* here is subject to being replaced.</p>
|
||||
*/
|
||||
private void _init() throws Exception {
|
||||
}
|
||||
|
||||
// </editor-fold>
|
||||
|
||||
/**
|
||||
* <p>Construct a new Page bean instance.</p>
|
||||
*/
|
||||
public ViewPlano() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called whenever a page is navigated to,
|
||||
* either directly via a URL, or indirectly via page navigation.
|
||||
* Customize this method to acquire resources that will be needed
|
||||
* for event handlers and lifecycle methods, whether or not this
|
||||
* page is performing post back processing.</p>
|
||||
*
|
||||
* <p>Note that, if the current request is a postback, the property
|
||||
* values of the components do <strong>not</strong> represent any
|
||||
* values submitted with this request. Instead, they represent the
|
||||
* property values that were saved for this view when it was rendered.</p>
|
||||
*/
|
||||
@Override
|
||||
public void init() {
|
||||
// Perform initializations inherited from our superclass
|
||||
super.init();
|
||||
// Perform application initialization that must complete
|
||||
// *before* managed components are initialized
|
||||
// TODO - add your own initialiation code here
|
||||
|
||||
// <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
|
||||
// Initialize automatically managed components
|
||||
// *Note* - this logic should NOT be modified
|
||||
try {
|
||||
_init();
|
||||
} catch (Exception e) {
|
||||
log("ViewPlano Initialization Failure", e);
|
||||
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
|
||||
}
|
||||
|
||||
// </editor-fold>
|
||||
// Perform application initialization that must complete
|
||||
// *after* managed components are initialized
|
||||
// TODO - add your own initialization code here
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called after the component tree has been
|
||||
* restored, but before any event processing takes place. This method
|
||||
* will <strong>only</strong> be called on a postback request that
|
||||
* is processing a form submit. Customize this method to allocate
|
||||
* resources that will be required in your event handlers.</p>
|
||||
*/
|
||||
@Override
|
||||
public void preprocess() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called just before rendering takes place.
|
||||
* This method will <strong>only</strong> be called for the page that
|
||||
* will actually be rendered (and not, for example, on a page that
|
||||
* handled a postback and then navigated to a different page). Customize
|
||||
* this method to allocate resources that will be required for rendering
|
||||
* this page.</p>
|
||||
*/
|
||||
@Override
|
||||
public void prerender() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Callback method that is called after rendering is completed for
|
||||
* this request, if <code>init()</code> was called (regardless of whether
|
||||
* or not this was the page that was actually rendered). Customize this
|
||||
* method to release resources acquired in the <code>init()</code>,
|
||||
* <code>preprocess()</code>, or <code>prerender()</code> methods (or
|
||||
* acquired during execution of an event handler).</p>
|
||||
*/
|
||||
@Override
|
||||
public void destroy() {
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Return a reference to the scoped data bean.</p>
|
||||
*
|
||||
* @return reference to the scoped data bean
|
||||
*/
|
||||
protected SessionBean1 getSessionBean1() {
|
||||
return (SessionBean1) getBean("SessionBean1");
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Return a reference to the scoped data bean.</p>
|
||||
*
|
||||
* @return reference to the scoped data bean
|
||||
*/
|
||||
protected ApplicationBean1 getApplicationBean1() {
|
||||
return (ApplicationBean1) getBean("ApplicationBean1");
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Return a reference to the scoped data bean.</p>
|
||||
*
|
||||
* @return reference to the scoped data bean
|
||||
*/
|
||||
protected RequestBean1 getRequestBean1() {
|
||||
return (RequestBean1) getBean("RequestBean1");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package tabledataproviders;
|
||||
|
||||
import com.sun.data.provider.impl.ObjectListDataProvider;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class PlanosActualDataProvider extends ObjectListDataProvider {
|
||||
public PlanosActualDataProvider(){
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package tabledataproviders;
|
||||
|
||||
import com.sun.data.provider.impl.ObjectListDataProvider;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class PlanosConcluidosDataProvider extends ObjectListDataProvider {
|
||||
public PlanosConcluidosDataProvider(){
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package tabledataproviders;
|
||||
|
||||
import com.sun.data.provider.impl.ObjectListDataProvider;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class PlanosSeguimentoDataProvider extends ObjectListDataProvider {
|
||||
public PlanosSeguimentoDataProvider(){
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package utils;
|
||||
|
||||
import java.util.Map;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class JSFHTTPUtils {
|
||||
|
||||
public static String getReferer(FacesContext context)
|
||||
{
|
||||
Map headerMap = context.getCurrentInstance().getExternalContext().getRequestHeaderMap();
|
||||
String referer = (String) headerMap.get("referer");
|
||||
return referer;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,103 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package utils;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import javax.faces.application.Application;
|
||||
import javax.faces.context.ExternalContext;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.render.ResponseStateManager;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import planosactuacao.SessionBean1;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class JSFUtils {
|
||||
|
||||
|
||||
public static SessionBean1 getSessionBean(FacesContext fc)
|
||||
{
|
||||
FacesContext context = fc.getCurrentInstance();
|
||||
SessionBean1 session = (SessionBean1) context.getApplication().getELResolver().getValue(context.getELContext(), null, "SessionBean1");
|
||||
return session;
|
||||
}
|
||||
|
||||
//
|
||||
// isPostBack - JSF 1.1 implementation
|
||||
//
|
||||
public static boolean isPostBack(FacesContext fc)
|
||||
{
|
||||
Map parameterMap = fc.getExternalContext().getRequestParameterMap();
|
||||
|
||||
if(parameterMap.size() > 0)
|
||||
{
|
||||
Iterator iter = parameterMap.keySet().iterator();
|
||||
while(iter.hasNext())
|
||||
{
|
||||
String par = (String) iter.next();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isPostback() {
|
||||
FacesContext facesContext = FacesContext.getCurrentInstance();
|
||||
Map requestScope = (Map) facesContext.getApplication().getExpressionFactory().createValueExpression(facesContext.getELContext(), "#{requestScope}", Map.class).getValue(facesContext.getELContext());
|
||||
//Map requestScope = (Map)facesContext.getApplication().createValueBinding(?#{requestScope}?).getValue(facesContext);
|
||||
boolean ispostback = ((Boolean)requestScope.get("ispostback")).booleanValue();
|
||||
System.out.println("POSTBACK A : " + ispostback);
|
||||
return ispostback;
|
||||
}
|
||||
|
||||
//
|
||||
// isPostBack - JSF 1.2 implementation
|
||||
//
|
||||
public static boolean isPostBack12(FacesContext fc)
|
||||
{
|
||||
ResponseStateManager rsm = fc.getRenderKit().getResponseStateManager();
|
||||
if(rsm.isPostback(fc))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void logout(FacesContext fc) throws Exception
|
||||
{
|
||||
ExternalContext ectx = fc.getCurrentInstance().getExternalContext();
|
||||
HttpSession session = (HttpSession) ectx.getSession(false);
|
||||
session.invalidate();
|
||||
}
|
||||
|
||||
public static void navigateTo(FacesContext fc, String outcome)
|
||||
{
|
||||
FacesContext context = fc.getCurrentInstance();
|
||||
Application app = context.getApplication();
|
||||
app.getNavigationHandler().handleNavigation(context, null, outcome);
|
||||
}
|
||||
|
||||
public static void redirect(FacesContext context, String url) throws Exception
|
||||
{
|
||||
HttpServletResponse response = (HttpServletResponse) context.getCurrentInstance().getExternalContext().getResponse();
|
||||
response.sendRedirect(url);
|
||||
context.responseComplete();
|
||||
}
|
||||
|
||||
public static String getRequestParameter(FacesContext fc, String parameter)
|
||||
{
|
||||
Map parameters = fc.getCurrentInstance().getExternalContext().getRequestParameterMap();
|
||||
return (String) parameters.get(parameter);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package viewhandler;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import javax.el.ValueExpression;
|
||||
import javax.faces.FacesException;
|
||||
import javax.faces.application.ViewHandler;
|
||||
import javax.faces.component.UIViewRoot;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author lluis
|
||||
*/
|
||||
public class CustomViewHandler extends ViewHandler{
|
||||
protected ViewHandler baseViewHandler;
|
||||
|
||||
public CustomViewHandler(ViewHandler viewHandler) {
|
||||
super();
|
||||
this.baseViewHandler = viewHandler;
|
||||
}
|
||||
|
||||
public Locale calculateLocale(FacesContext facesContext) {
|
||||
return baseViewHandler.calculateLocale(facesContext);
|
||||
}
|
||||
|
||||
public String calculateRenderKitId(FacesContext facesContext) {
|
||||
return baseViewHandler.calculateRenderKitId(facesContext);
|
||||
}
|
||||
|
||||
public UIViewRoot createView(FacesContext facesContext, String arg1) {
|
||||
setPostback(facesContext, false);
|
||||
return baseViewHandler.createView(facesContext, arg1);
|
||||
}
|
||||
|
||||
public String getActionURL(FacesContext facesContext, String arg1) {
|
||||
return baseViewHandler.getActionURL(facesContext, arg1);
|
||||
}
|
||||
|
||||
public String getResourceURL(FacesContext facesContext, String arg1) {
|
||||
return baseViewHandler.getResourceURL(facesContext, arg1);
|
||||
}
|
||||
|
||||
public void renderView(FacesContext facesContext, UIViewRoot arg1) throws IOException, FacesException {
|
||||
baseViewHandler.renderView(facesContext, arg1);
|
||||
|
||||
}
|
||||
|
||||
public UIViewRoot restoreView(FacesContext facesContext, String arg1) {
|
||||
setPostback(facesContext, true);
|
||||
return baseViewHandler.restoreView(facesContext, arg1);
|
||||
}
|
||||
|
||||
public void writeState(FacesContext facesContext) throws IOException {
|
||||
baseViewHandler.writeState(facesContext);
|
||||
}
|
||||
|
||||
public Map getRequestScope(FacesContext facesContext) {
|
||||
//return (Map)facesContext.getApplication().createValueBinding(?#{requestScope}?).getValue(facesContext);
|
||||
//return (Map)facesContext.getApplication().
|
||||
return (Map) facesContext.getApplication().getExpressionFactory().createValueExpression(facesContext.getELContext(), "#{requestScope}", Map.class).getValue(facesContext.getELContext());
|
||||
}
|
||||
|
||||
public void setPostback(FacesContext facesContext, boolean value) {
|
||||
getRequestScope(facesContext).put("ispostback", new Boolean(value));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
Document : Dummy
|
||||
Created on : Oct 6, 2008, 10:43:13 AM
|
||||
Author : lluis
|
||||
-->
|
||||
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
|
||||
<jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"/>
|
||||
<f:view>
|
||||
<webuijsf:page id="page1">
|
||||
<webuijsf:html id="html1">
|
||||
<webuijsf:head id="head1">
|
||||
<webuijsf:link id="link1" url="/resources/stylesheet.css"/>
|
||||
<style>
|
||||
.gridCol10{
|
||||
width: 10%;
|
||||
}
|
||||
.gridCol20{
|
||||
width: 20%;
|
||||
}
|
||||
.gridCol80{
|
||||
width: 80%;
|
||||
}
|
||||
.gridCol90{
|
||||
width: 90%;
|
||||
}
|
||||
</style>
|
||||
</webuijsf:head>
|
||||
<webuijsf:body id="body1" style="-rave-layout: grid">
|
||||
<webuijsf:form id="form1">
|
||||
<h:panelGrid binding="#{Dummy.grid}" columns="1" id="grid" style="height: 72px; left: 216px; top: 24px; position: absolute; width: 96px"/>
|
||||
<h:panelGrid columnClasses="gridCol30,gridCol70" columns="2" id="gridPanel1"
|
||||
style="height: 24px; left: 120px; top: 192px; position: absolute; width: 80%" styleClass="centerBlock" width="552">
|
||||
<webuijsf:panelGroup id="groupPanel1">
|
||||
<webuijsf:image id="image1" url="/resources/images/SIPRP_logo_small.jpg"/>
|
||||
<webuijsf:staticText escape="false" id="staticText1" style="" text="&nbsp;"/>
|
||||
<webuijsf:image height="40" id="image2" style="" url="/resources/images/logo_auchan_small.jpg"/>
|
||||
</webuijsf:panelGroup>
|
||||
<h:panelGrid columnClasses="gridColRight" columns="1" id="gridPanel2" style="height: 24px; width: 80%" styleClass="centerBlock">
|
||||
<webuijsf:panelGroup id="groupPanel2" style="">
|
||||
<webuijsf:hyperlink actionExpression="#{Dummy.lnkAnaliseAcidentes_action}" id="lnkAnaliseAcidentes1" text="análises acidentes>>"/>
|
||||
</webuijsf:panelGroup>
|
||||
<webuijsf:panelGroup id="groupPanel3">
|
||||
<webuijsf:staticText escape="false" id="lblUser1" styleClass="label" text="#{SessionBean1.currentUser.login}"/>
|
||||
<webuijsf:staticText escape="false" id="staticText2" text="&nbsp;&nbsp;&nbsp;"/>
|
||||
<webuijsf:hyperlink id="lnkPlanosActuacao1" text="planos actuação"/>
|
||||
<webuijsf:staticText escape="false" id="staticText3" text="&nbsp;|&nbsp;"/>
|
||||
<webuijsf:hyperlink id="lnkGerirUtilizadores1" style="" text="gerir utilizadores"/>
|
||||
<webuijsf:staticText escape="false" id="staticText4" text="&nbsp;|&nbsp;"/>
|
||||
<webuijsf:hyperlink id="lnkDadosUtilizador1" style="" text="alterar dados utilizador"/>
|
||||
<webuijsf:staticText escape="false" id="staticText5" text="&nbsp;|&nbsp;"/>
|
||||
<webuijsf:hyperlink actionExpression="#{Dummy.lnkLogout_action}" id="lnkLogout1" text="sair>>"/>
|
||||
</webuijsf:panelGroup>
|
||||
</h:panelGrid>
|
||||
</h:panelGrid>
|
||||
<webuijsf:hyperlink id="hyperlink1" style="color: #008000; left: 432px; top: 144px; position: absolute" text="Hyperlink"/>
|
||||
</webuijsf:form>
|
||||
</webuijsf:body>
|
||||
</webuijsf:html>
|
||||
</webuijsf:page>
|
||||
</f:view>
|
||||
</jsp:root>
|
||||
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
Document : Footer
|
||||
Created on : Oct 6, 2008, 3:01:32 PM
|
||||
Author : lluis
|
||||
-->
|
||||
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
|
||||
<jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"/>
|
||||
<f:subview id="footer">
|
||||
<webuijsf:page id="page1">
|
||||
<webuijsf:html id="html1">
|
||||
<webuijsf:head id="head1">
|
||||
<webuijsf:link id="link1" url="/resources/stylesheet.css"/>
|
||||
</webuijsf:head>
|
||||
<webuijsf:body id="body1" style="-rave-layout: grid">
|
||||
<webuijsf:form id="form1">
|
||||
<h:panelGrid columnClasses="gridColCenter" columns="1" id="gridPanel1" style="height: 24px; width: 100%">
|
||||
<webuijsf:panelGroup id="groupPanel1">
|
||||
<webuijsf:staticText escape="false" id="staticText1" text="Software desenvolvido por&nbsp;"/>
|
||||
<webuijsf:image id="image1" url="/resources/images/logo_evolute_small.png"/>
|
||||
<webuijsf:staticText escape="false" id="staticText2" text="&nbsp;&copy; 2008"/>
|
||||
</webuijsf:panelGroup>
|
||||
</h:panelGrid>
|
||||
</webuijsf:form>
|
||||
</webuijsf:body>
|
||||
</webuijsf:html>
|
||||
</webuijsf:page>
|
||||
</f:subview>
|
||||
</jsp:root>
|
||||
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
Document : Header
|
||||
Created on : Oct 6, 2008, 10:35:32 AM
|
||||
Author : lluis
|
||||
-->
|
||||
<div style="height: 30px; width: 100%; -rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
|
||||
<f:subview id="Header">
|
||||
<h:panelGrid columnClasses="gridColRight" columns="1" id="gridPanel1" style="height: 24px; left: 0px; top: 0px; position: absolute; width: 100%" styleClass="centerBlock">
|
||||
<h:panelGrid columnClasses="gridCol30,gridCol70" columns="2" id="gridPanel2" style="height: 24px; width: 80%" styleClass="centerBlock" width="552">
|
||||
<webuijsf:panelGroup id="groupPanel1">
|
||||
<webuijsf:image id="image1" url="/resources/images/SIPRP_logo_small.jpg"/>
|
||||
<webuijsf:staticText escape="false" id="staticText1" style="" text="&nbsp;"/>
|
||||
<webuijsf:image height="40" id="image2" style="" url="/resources/images/logo_auchan_small.jpg"/>
|
||||
</webuijsf:panelGroup>
|
||||
<h:panelGrid columnClasses="gridColRight" columns="1" id="gridPanel3" style="height: 24px; width: 80%" styleClass="centerBlock">
|
||||
<webuijsf:panelGroup id="groupPanel2" style="">
|
||||
<webuijsf:hyperlink actionExpression="#{Header.lnkAnaliseAcidentes_action}" disabled="#{SessionBean1.disableMenuAnalises}"
|
||||
id="lnkAnaliseAcidentes1" text="análises acidentes>>"/>
|
||||
</webuijsf:panelGroup>
|
||||
<webuijsf:panelGroup id="groupPanel3">
|
||||
<webuijsf:staticText escape="false" id="lblUser1" styleClass="label" text="#{SessionBean1.currentUser.login}"/>
|
||||
<webuijsf:staticText escape="false" id="staticText2" text="&nbsp;&nbsp;&nbsp;"/>
|
||||
<webuijsf:hyperlink disabled="#{SessionBean1.disableMenuPlanos}" id="lnkPlanosActuacao1" text="planos actuação"/>
|
||||
<webuijsf:staticText escape="false" id="staticText3" text="&nbsp;|&nbsp;"/>
|
||||
<webuijsf:hyperlink disabled="#{SessionBean1.disableMenuUtilizadores}" id="lnkGerirUtilizadores1" style="" text="gerir utilizadores"/>
|
||||
<webuijsf:staticText escape="false" id="staticText4" text="&nbsp;|&nbsp;"/>
|
||||
<webuijsf:hyperlink disabled="#{SessionBean1.disableMenuDadosUtilizador}" id="lnkDadosUtilizador1" style="" text="alterar dados utilizador"/>
|
||||
<webuijsf:staticText escape="false" id="staticText6" text="&nbsp;|&nbsp;"/>
|
||||
<webuijsf:hyperlink id="lnkAjuda" style="" text="ajuda"/>
|
||||
<webuijsf:staticText escape="false" id="staticText5" text="&nbsp;|&nbsp;"/>
|
||||
<webuijsf:hyperlink actionExpression="#{Header.lnkLogout_action}" id="lnkLogout1" text="sair>>"/>
|
||||
</webuijsf:panelGroup>
|
||||
</h:panelGrid>
|
||||
</h:panelGrid>
|
||||
</h:panelGrid>
|
||||
</f:subview>
|
||||
</div>
|
||||
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
Document : ViewPlano
|
||||
Created on : Oct 20, 2008, 10:39:30 AM
|
||||
Author : lluis
|
||||
-->
|
||||
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
|
||||
<jsp:directive.page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"/>
|
||||
<f:view>
|
||||
<webuijsf:page id="page1">
|
||||
<webuijsf:html id="html1">
|
||||
<webuijsf:head id="head1">
|
||||
<webuijsf:link id="link1" url="/resources/stylesheet.css"/>
|
||||
</webuijsf:head>
|
||||
<webuijsf:body id="body1" style="-rave-layout: grid">
|
||||
<webuijsf:form id="form1">
|
||||
<div style="left: 0px; top: 0px; width: 100%">
|
||||
<jsp:directive.include file="Header.jspf"/>
|
||||
</div>
|
||||
</webuijsf:form>
|
||||
</webuijsf:body>
|
||||
</webuijsf:html>
|
||||
</webuijsf:page>
|
||||
</f:view>
|
||||
</jsp:root>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
Loading…
Reference in new issue