hi Dave,

Please find below all relevant sources.

Workflow is:
1-. Menu -> ListOptimizationJobStatus.action
2-. ListOptimizationJobStatus.action -> Displays listOptimizationJobStatus.jsp 3-. listOptimizationJobStatus.jsp Remote DIV refreshes every X secs and invokes RefreshOptimizationJobStatus.action 4-. RefreshOptimizationJobStatus.action invokes AjaxOptimizationJobStatus.jsp that
is rendered inside the Remote DIV.

I suspect might have something to do with the Tiles interceptor that is the default stack for the Action Refresh* in the struts.xml below while those Refresh Actions do not produce any Tiles result but page ...
this is a wild guess though

Best regards,
Giovanni

************************* struts.xml *****************************

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
   "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
   "http://struts.apache.org/dtds/struts-2.0.dtd";>
<struts>
   <constant name="struts.enable.DynamicMethodInvocation" value="false" />
   <constant name="struts.devMode" value="true" />
   <constant name="struts.ui.theme" value="xhtml" />
   <package name="webui" extends="tiles-default">
       <action name="Refresh*" >
           <result>/jsp/ajax/Ajax{1}.jsp</result>
       </action>
   </package>
</struts>

************************* tiles.xml *****************************

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://struts.apache.org/dtds/tiles-config_2_0.dtd";>
<tiles-definitions>
<definition name="webui.listDisplayOptimizationJobStatus" template="/tiles/layout.jsp"> <put-attribute name="title" value="List of Optimization Job Status"/>
       <put-attribute name="style" value="/tiles/styledisplaytag.jsp"/>
<put-attribute name="body" value="/jsp/list/listOptimizationJobStatus.jsp"/>
   </definition>
</tiles-definitions>

************************* layout.jsp *****************************

<%@ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%@ page buffer = "1024kb" %>
<tiles:importAttribute name="title" scope="request"/>
<html>
   <head>
       <title><tiles:getAsString name="title"/></title>
       <meta http-equiv="Content-Type"
           content="text/html; charset=iso-8859-1" />
       <script type="text/javascript" src="js/drop_down.js"></script>
       <script type="text/javascript" src="js/thumbnail_popup.js"></script>
       <tiles:insertAttribute name="style"/>
       <s:head theme="xhtml" />
       <sx:head cache="true" />
   </head>
<body>
   <jsp:include page="menu.jsp" />
   <br />
   <div id="bodyColumn">
       <div id="contentBox">
           <div class="section">
               <h2><tiles:getAsString name="title"/></h2>
           </div>
           <tiles:insertAttribute name="body"/>
       </div>
   </div>
</body>
</html>

************************* listOptimizationJobStatus.jsp *****************************

<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<s:url var="jobStatus" includeParams="get" value="/RefreshOptimizationJobStatus.action" /> <sx:div id="jobStatus" href="%{#jobStatus}" updateFreq="5000" autoStart="true" indicator="indicator">
</sx:div>
<img id="indicator" src="img/indicator.gif" alt="Loading..." style="display:none"/>

************************* AjaxOptimizationJobStatus.jsp *****************************

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"; %>

<%
   request.setAttribute("decorator", "none");
   response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
   response.setHeader("Pragma","no-cache");            // HTTP 1.0
response.setDateHeader ("Expires", 0); // prevents caching at the proxy server
%>

<display:table name="applicationScope.jobStates" defaultsort="7" defaultorder="descending" pagesize="15" requestURI="/ListDisplayOptimizationJobStatus.action" export="true" sort="list" decorator="com.sag.optimizer.ui.web.displaytag.decorator.OptimizationJobDecorator" > <display:column property="optimizationRunId" title="ID" sortable="true" headerClass="sortable" /> <display:column property="historicBook0" title="Book 1" sortable="true" headerClass="sortable" /> <display:column property="historicBook1" title="Book 2" sortable="true" headerClass="sortable" /> <display:column property="priority" title="Priority" sortable="true" headerClass="sortable" /> <display:column property="permanent" title="Frequency" sortable="true" headerClass="sortable" /> <display:column property="status" title="Status" sortable="true" headerClass="sortable" /> <display:column property="progress" title="Progress" format="{0,number,integer}%" sortable="true" headerClass="sortable" />
   <display:column property="result" title="Result" sortable="false" />
</display:table>

Dave Newton wrote:
Hello,

Could you post the outline of the source that created
this error? Just curious as to what could have caused
that error--may be a bug.

Thanks,
Dave

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

Reply via email to