%@ page language="java"%> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.AccessDeniedException" %> <%@ page import="com.edeal.frontline.PopulationEntryBean" %> <%@ page import="com.edeal.frontline.PopulationBean" %> <%@ page import="com.edeal.frontline.ObjectsBean" %> <%@ page import="java.util.Vector" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String popID = flRequest.getParameter("PopID"); String popType = flRequest.getParameter("PopType"); if (popType == null) { popType = "0"; } String multivalSeparator = flRequest.getParameter("multivalSeparator"); if (multivalSeparator == null || "".equals(multivalSeparator)) { multivalSeparator = "|"; } PopulationBean Popbean = new PopulationBean(popID,context); String paramObjectID = null; Vector paramObjectIDs = new Vector(); String paramObject = null; String paramobjsql = null; Vector VectObject = new Vector(); Vector VectObjectShadow = new Vector(); Vector VectPpeFld = new Vector(); Vector objects = new Vector(); ObjectsBean objetBean =null; String _Label_=null; boolean entPerforcedlink = false,supJouforcedlink=false,isent=false,isper=false,issup=false,isjou=false; //Recuperation des paramétres //recuperer la liste des objets à faire if (Popbean.isPopIsPer()){ isper=true; paramObject ="Person"; try { _Label_ = Utils.getMessage(session, paramObject, paramObject); paramObjectID= dico.getTable("sql",_Label_).getID(); //paramObjectID = Popbean.getPopObj1(); paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); }catch (FieldNotInitializedException e){} VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpePerID"); VectPpeFld.addElement("PpePerID"); } if (Popbean.isPopIsJou()){ isjou=true; paramObject ="Journalist"; try { _Label_ = Utils.getMessage(session, paramObject, paramObject); paramObjectID= dico.getTable("sql",_Label_).getID(); //paramObjectID = Popbean.getPopObj5(); paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); }catch (FieldNotInitializedException e){} VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpeJouID"); VectPpeFld.addElement("PpeJouID"); } if (Popbean.isPopIsEnt()){ isent=true; paramObject ="Enterprise"; try { _Label_ = Utils.getMessage(session, paramObject, paramObject); paramObjectID= dico.getTable("sql",_Label_).getID(); //paramObjectID = Popbean.getPopObj2(); paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); }catch (FieldNotInitializedException e){} VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpeEntID"); VectPpeFld.addElement("PpeEntID"); } if (Popbean.isPopIsSup()){ issup=true; paramObject ="Support"; try { _Label_ = Utils.getMessage(session, paramObject, paramObject); paramObjectID= dico.getTable("sql",_Label_).getID(); //paramObjectID = Popbean.getPopObj2(); paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); }catch (FieldNotInitializedException e){} VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpeSupID"); VectPpeFld.addElement("PpeSupID"); } if (Popbean.isPopIsSil()){ paramObject ="Silhouette"; try { _Label_ = Utils.getMessage(session, paramObject, paramObject); paramObjectID= dico.getTable("sql",_Label_).getID(); //paramObjectID = Popbean.getPopObj3(); paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); }catch (FieldNotInitializedException e){} VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpeSilID"); VectPpeFld.addElement("PpeSilID"); } try { paramObjectID = Popbean.getPopObj1(); if (paramObjectID != null){ paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpeFob1"); VectPpeFld.addElement("PpeFob1"); } }catch (FieldNotInitializedException e){} try { paramObjectID = Popbean.getPopObj2(); if (paramObjectID != null){ paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpeFob2"); VectPpeFld.addElement("PpeFob2"); } }catch (FieldNotInitializedException e){} try { paramObjectID = Popbean.getPopObj3(); if (paramObjectID != null){ paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpeFob3"); VectPpeFld.addElement("PpeFob3"); } }catch (FieldNotInitializedException e){} try { paramObjectID = Popbean.getPopObj4(); if (paramObjectID != null){ paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpeFob4"); VectPpeFld.addElement("PpeFob4"); } }catch (FieldNotInitializedException e){} try { paramObjectID = Popbean.getPopObj5(); if (paramObjectID != null){ paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql=(String)objBean.getObjSql(); paramObject = objBean.getObjDisplay(); logger.warn("dans le try catch le paramObject is " + paramObject); VectObject.addElement((String)paramObject); VectObjectShadow.addElement(paramobjsql+"|PpeFob5"); VectPpeFld.addElement("PpeFob5"); } }catch (FieldNotInitializedException e){} if(isent && isper) entPerforcedlink=true; if(issup && isjou) supJouforcedlink=true; // Hack to support the Per/Ent/Sil case boolean popIsSil = false; try { popIsSil = "1".equals(flRequest.getRequestParameterOrAttribute("PopIsSil")); } catch (Exception e) { } if (popIsSil) { entPerforcedlink = false; supJouforcedlink = false; paramObject = "Silhouette"; try { _Label_ = Utils.getMessage(session, paramObject, paramObject); paramObjectID = dico.getTable("sql",_Label_).getID(); paramObjectIDs.clear(); paramObjectIDs.addElement(paramObjectID); ObjectsBean objBean = new ObjectsBean(paramObjectID,context); paramobjsql = objBean.getObjSql(); paramObject = objBean.getObjDisplay(); } catch (FieldNotInitializedException e) { } VectObject.clear(); VectObject.addElement(paramObject); VectObjectShadow.clear(); VectObjectShadow.addElement(paramobjsql+"|PpeSilID"); VectPpeFld.clear(); VectPpeFld.addElement("PpeSilID"); } %>
">
<%if (VectObjectShadow!= null&& !VectObjectShadow.isEmpty()){ %>
" title=" |