Note that there are some explanatory texts on larger screens.

plurals
  1. POCan Anyone Explain This Struts 2 AJAX Strange Refresh Behaviour?
    text
    copied!<p>We have the following code (listed below) in our JSP. We are seeing the action configured in the <code>href</code> of the div <code>id=pwcercontainer</code> being called twice. Can't work out exactly why. Replacing the containing <code>sx:div label="Admin Record Deployment"</code> with a plain non-struts div causes the action to be called only once. We can't see anything in the documentation for <code>sx:div</code> that explains this behavior.</p> <p>Does anyone know anything about this or have similar experience?</p> <p>Thanks. NCF</p> <pre><code>&lt;%@ page language="java" %&gt; &lt;%@ taglib uri="/WEB-INF/tags/c.tld" prefix="c" %&gt; &lt;%@ taglib prefix="s" uri="/struts-tags" %&gt; &lt;%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %&gt; &lt;%@ taglib uri="/WEB-INF/tags/arcade.tld" prefix="arcade" %&gt; &lt;%@ taglib prefix="sx" uri="/struts-dojo-tags" %&gt; &lt;s:url id="pwcerAjax" action="pwcerajax" method="start" includeParams="none"/&gt; &lt;s:url id="pwAjax" action="pwajax" method="start" includeParams="none"/&gt; &lt;s:url id="listPendingDeploymentsLink" action="listPendingDeployments" namespace="/"/&gt; &lt;s:url id="record" action="recordDeploymentFragment" method="showAdminRecord" namespace="/"/&gt; &lt;sx:div label="Admin Record Deployment" &gt; &lt;!-- Div where content will be displayed --&gt; &lt;sx:div id="pwcercontainer" href="%{pwcerAjax}" showLoadingText="false" indicator="recordImage" preload="true"&gt; &lt;/sx:div&gt; &lt;div id="loadingContainer"&gt;&lt;img id="recordImage" src="images/ajaxLoadingAnimation.gif" style="display:none" alt="loading animation"/&gt;&lt;/div&gt; &lt;/sx:div&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload