Hi Antonio,

here is the code for one page (to chose a report) that is not that large:

my jsp:

<%@ page language='java' errorPage='layout/error.jsp' isErrorPage='true' %>
<%@ taglib prefix="fragment" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

        <s:set name="headline" value="getLabel('REPORTS.AUSWAHL')" />   
        <fragment:pageHeader headLine="${headline}"
                                                 
bannerImage="images/BlueBar.gif"
                                                 showHelp="false" 
                                                 subTitle="" />
                                         
<br>
<TABLE>
<TR class='tablehead'>
<TD width="400"><s:property value="getLabel('REPORTS.NAME')"/></TD>
<TD width="800"><s:property value="getLabel('REPORTS.BESCHREIBUNG')"/></TD>
<TD width="30"><s:property 
value="getLabel('REPORTS.BESCHREIBUNG.ANHANG')"/></TD>
</TR>

        <s:iterator id="reports" value="reportList" status="reportStatus">
                <s:if test="#status.odd">
                    <TR class="rowdark">
                </s:if>
                <s:else>
                        <TR class="rowlight">
                </s:else>                               

                        <s:set name="reportName" 
value="%{getReportName(#reportStatus.index)}" />
                        <s:set name="reportId" value="id" />
                        <s:set name="reportParams" value="queryParamsAsJSArray" 
/>                      
                        <s:set name="reportDescription" 
value="%{getReportDescription(#reportStatus.index)}" />
                        <s:set name="reportDescriptionExtension" 
value="%{getReportDescriptionExtension(#reportStatus.index)}" />
                        
                        <TD style="cursor:hand;" 
onclick="doReport('${reportName}','${reportId}',${reportParams})">${reportName}</TD>
                        <TD style="cursor:hand;" 
onclick="doReport('${reportName}','${reportId}',${reportParams})">${reportDescription}</TD>
                        
                        <s:if test="#reportDescriptionExtension != ''">
                                <TD style="cursor:hand;" 
onclick="openWindow('${reportDescriptionExtension}')">
                                        <IMG border="0" 
src="images//icon_fragezeichen.gif" width="16" height="16"/>
                                </TD>
                        </s:if>
                        <s:else>
                                <TD/>
                        </s:else>
                </TR>
        </s:iterator>
</TABLE>


My Action Class:

package de.xxx.bbbb.action;

import java.util.List;
import org.apache.log4j.Logger;
import oracle.toplink.threetier.ClientSession;
... (some more imports)

public class ReportChooserAction extends BaseAction {

        private static Logger log = 
Logger.getLogger(ReportChooserAction.class);        
        private static final long serialVersionUID = 3030206506547648249L;
        private List<Report> reportList = null;
        
        public String execute() throws Exception {
                initReportList();
                return SUCCESS;
        }

        @SuppressWarnings("unchecked")
        private void initReportList() {
                ClientSession dbSession = BADBSessionManager.getClientSession();
                try {
                        reportList = 
ReportManager.getInstance().getReports(dbSession, getUserSession().getUserID());
                } catch (AppSystemErrorException e) {
                        result=ERROR;
                        e.printStackTrace();
                } catch (AppNoLoginException e) {
                        result = LOGIN;
                        log.info("User is not logged in.", e);
                }
                BADBSessionManager.release(dbSession);
        }

        public Report getReport(int listIndex) {
                return (Report) getReportList().get(listIndex);
        }

        public String getReportName(int listIndex) {
                String reportName="";
                try {
                        reportName= ((Report) 
getReportList().get(listIndex)).getName(getUserLocale());
                } catch (AppNoLoginException e) {
                        result = LOGIN;
                        log.info("User is not logged in.", e);
                }
                return reportName;
        }

        public String getReportDescription(int listIndex) {
                String reportDescription="";
                try {
                        reportDescription= ((Report) 
getReportList().get(listIndex)).getBeschreibung((getUserLocale()));
                } catch (AppNoLoginException e) {
                        result = LOGIN;
                        log.info("User is not logged in.", e);
                }
                return reportDescription;
        }

        public String getReportDescriptionExtension(int listIndex) {
                String reportDE="";
                try {
                        reportDE= ((Report) 
getReportList().get(listIndex)).getBeschreibungAnhang((getUserLocale()));
                } catch (AppNoLoginException e) {
                        result = LOGIN;
                        log.info("User is not logged in.", e);
                }
                return reportDE;
        }

        public List<Report> getReportList() {
                return reportList;
        }
        
        public void setReportList(List<Report> reportList) {
                this.reportList = reportList;
        }
}

my sitelayout for tiles:
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" 
language="java" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%-- Show usage; Used in Header --%>
<tiles:importAttribute name="title" scope="request" />
<html>
        <head>
                <meta http-equiv="Content-Type" content="text/html; 
charset=iso-8859-1">
                <link rel='stylesheet' href='css/default.css'>

                <meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
                <title><tiles:getAsString name="title" /></title>
                        <script type="text/javascript" src="js/init.js" />
                    <s:head theme="ajax" debug="true" 
calendarcss="calendar-green" />
                    <script>
                        dojo.require("dojo.event.*");
                        dojo.require("dojo.widget.*");
                        dojo.require("dojo.widget.DatePicker");
                    </script>
                        <script language="JavaScript">

                        /* Hilfe-Fenster */
                        function help() {
                                HilfeFenster=open("Hilfe.jsp?context=" + 
parent.frames['inhalt'].document.title,"HilfeFenster","width=500,height=620,screenX=20,screenY=50");
                                HilfeFenster.focus();
                        }

                        /* Popup für UserGuide */
                        function userGuide() {
                                
HilfeFenster=open("Hilfe.jsp?context=UserGuides","UserGuides","width=500,height=620,screenX=20,screenY=50");
                                HilfeFenster.focus();
                        }
                </script>

                <!-- Aus Welcome -->
                <script language="JavaScript" >
                        function openBoFrame() {
                                
window.open("hilfe/de/BO_Migration.html","Datenmigration", 
"width=850,height=750,screenX=20,screenY=50");
                        }
                        function doNothing() {}
                </script>

                <SCRIPT language="JavaScript" src="js/Default.js" 
type="text/javascript"></SCRIPT>
                <SCRIPT language="JavaScript" src="js/ISort.js" 
type="text/javascript"></SCRIPT>
                <script language="JavaScript" src="js/Countdown.js"></script>

        </head>

        <body topmargin="0px" leftmargin="0px" rightmargin="0px" 
onload="initTimer(<%= request.getSession(false).getMaxInactiveInterval() %>); 
myStart()" >
                <table border="0" width="100%" height="100%" cellspacing="0" 
cellpadding="0">
                        <tbody>
                                <tr>
                                        <td colspan="3"><tiles:insertAttribute 
name="header" /></td>
                                </tr>
                                <tr style="height: 5px"><td 
colspan="3">&nbsp;</td></tr>
                                <tr height="100%">
                                        <td width="180px" valign="top" 
nowrap="nowrap">
                                                <tiles:insertAttribute 
name="navigation" />
                                        </td>
                                        <td width="10px" valign="top" 
nowrap="nowrap">
                                                <tiles:insertAttribute 
name="navigationSwitch" />
                                        </td>
                                        <td width="100%" height="100%" 
valign="top">
                                                <tiles:insertAttribute 
name="body" />
                                        </td>
                                </tr>
                        </tbody>
                </table>
        </body>
</html>



Hope you do not need much more. The other parts of that layout 
(Navigation.jsp/NavigationSwitch.jsp) never change, even not on the pages 
without this strange effect, so I do not think they are involved in the problem.

Hope you can help....

  Volker





2008/5/20  <[EMAIL PROTECTED]>:
> this is quite difficult as I'd have to publish a lot of code because of using 
tiles to make it clear.

You can just post the code for one page not rendering correctly.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to