anchor.diff:  <c:set var="listNewsJSON" value="${requestScope.ListNewsJSON}"/>
     
   <%
  -	List<DelegatedNews> listNews = (List<DelegatedNews>) request.getAttribute("ListNews"); //List<DelegatedNews>
  +  List<DelegatedNews> listNews = (List<DelegatedNews>) request.getAttribute("ListNews"); //List<DelegatedNews>
   %>
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
  
positive.code:     arrayPane.addArrayColumn(resources.getString("delegatednews.visibilityEndDate"));
      
      boolean isAdmin = newsScc.isAdmin();
  	    if(isAdmin) {
  			ArrayColumn arrayColumnOp = arrayPane.addArrayColumn(resources.getString("GML.operations"));
  			arrayColumnOp.setSortable(false);
  			arrayPane.addArrayColumn("");
  		}
      
      SimpleDateFormat hourFormat = new SimpleDateFormat(resources.getString("GML.hourFormat"));
      for (int i=0; i<listNews.size(); i++) {
  			DelegatedNews delegatedNews = (DelegatedNews) listNews.get(i);
  			
  			int pubId = delegatedNews.getPubId();
  			String instanceId = delegatedNews.getInstanceId();
  			ArrayLine arrayLine = arrayPane.addArrayLine();
  			arrayLine.setId("delegatedNews_"+pubId);
  			arrayLine.addArrayCellLink(delegatedNews.getPublicationDetail().getName(resources.getLanguage()), "javascript:onClick=openPublication('"+pubId+"', '"+instanceId+"');");
  			
  			String updateDate = resources.getOutputDate(delegatedNews.getPublicationDetail().getUpdateDate());
  			ArrayCellText cellUpdateDate = arrayLine.addArrayCellText(updateDate);
  			cellUpdateDate.setCompareOn(delegatedNews.getPublicationDetail().getUpdateDate());
  			
  			arrayLine.addArrayCellText(UserNameGenerator.toString(delegatedNews.getContributorId(), "unknown"));
  			
  			String status = delegatedNews.getStatus();
  			arrayLine.addArrayCellText(resources.getString("delegatednews.status."+status));
  			
  			String beginDate = "";
  			String beginHour = "";
  			if(delegatedNews.getBeginDate() != null) {
  				beginDate = resources.getInputDate(delegatedNews.getBeginDate());
  				beginHour = hourFormat.format(delegatedNews.getBeginDate());
  				ArrayCellText cellBeginDate = arrayLine.addArrayCellText(resources.getOutputDateAndHour(delegatedNews.getBeginDate()));
  				cellBeginDate.setCompareOn(delegatedNews.getBeginDate());
  			} else {
  				arrayLine.addArrayCellText("");
  			}
  			
  			String endDate = "";
  			String endHour = "";
  			if(delegatedNews.getEndDate() != null) {
  				endDate = resources.getInputDate(delegatedNews.getEndDate());
  				endHour = hourFormat.format(delegatedNews.getEndDate());
  				ArrayCellText cellEndDate = arrayLine.addArrayCellText(resources.getOutputDateAndHour(delegatedNews.getEndDate()));
  				cellEndDate.setCompareOn(delegatedNews.getEndDate());
  			} else {
  				arrayLine.addArrayCellText("");
  			}
  	
  	    if(isAdmin) {
  				IconPane iconPane = gef.getIconPane();
  				Icon iconUpdate = iconPane.addIcon();
  				iconUpdate.setProperties(m_context+"/util/icons/update.gif", resources.getString("GML.modify"), "javascript:onClick=updateDateDelegatedNews('"+pubId+"', '"+beginDate+"', '"+beginHour+"', '"+endDate+"', '"+endHour+"');");
  				
  				Icon iconValidate = iconPane.addIcon();
  				iconValidate.setProperties(m_context+"/util/icons/ok.gif", resources.getString("delegatednews.action.validate"), "ValidateDelegatedNews?PubId="+pubId);
  				
  				Icon iconRefused = iconPane.addIcon();
  				iconRefused.setProperties(m_context+"/util/icons/delete.gif", resources.getString("delegatednews.action.refuse"), "javascript:onClick=refuseDelegatedNews('"+pubId+"');");
  				
  				arrayLine.addArrayCellIconPane(iconPane);	
  				
  				arrayLine.addArrayCellText("<input type=\"checkbox\" name=\"checkedDelegatedNews\" value=\""+pubId+"\"/>");
  			}
  	}
  
    out.print(arrayPane.print());
    %>
  
negative.code:     }
      
      function refuseDelegatedNews(pubId) {
        document.listDelegatedNews.PubId.value = pubId;
        $("#refuseDialog").dialog("open");
      }
      
      function updateDateDelegatedNews(pubId, BeginDate, BeginHour, EndDate, EndHour) {
        document.listDelegatedNews.PubId.value = pubId;
        $("#datesDialog #BeginDate").val(BeginDate);
        $("#datesDialog #BeginHour").val(BeginHour);
        $("#datesDialog #EndDate").val(EndDate);
        $("#datesDialog #EndHour").val(EndHour);
        $("#datesDialog").dialog("open");
      }
      
      function areDatesCorrect(beginDate, beginHour, endDate, endHour, language) {
        var errorMsg = "";
          var errorNb = 0;
          var beginDateOK = true;
        if (!isWhitespace(beginDate)) {
            if (!isDateOK(beginDate, language)) {
                   errorMsg+="  - '<fmt:message key="delegatednews.visibilityBeginDate"/>' <fmt:message key="GML.MustContainsCorrectDate"/>\n";
                 errorNb++;
                 beginDateOK = false;
              } 
           }
           if (!checkHour(beginHour))
           {
  