You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Francisco Trujillo (JIRA)" <ji...@apache.org> on 2007/10/31 13:44:41 UTC
[jira] Created: (WW-2281) When i refresh a div using a submit
button with targets => the content in the div display an error
("undefined")
When i refresh a div using a submit button with targets => the content in the div display an error ("undefined")
----------------------------------------------------------------------------------------------------------------
Key: WW-2281
URL: https://issues.apache.org/struts/browse/WW-2281
Project: Struts 2
Issue Type: Bug
Components: Plugin - Dojo Tags
Affects Versions: 2.0.9
Environment: Mozilla 2.0
Tomcat 5.0
Reporter: Francisco Trujillo
I have a jsp listadoAsientos.jsp page with:
!-- Listado de Asientos -->
<s:div
id="listadoAsientosDiv"
theme="ajax"
executeScripts="true"
loadingText=" "
showLoadingText="true"
>
</s:div>
<div id="loaderListadoAsientosDiv" style="display:none">
<s:include value="/pages/common/carga/cargaCapa.jsp"></s:include>
</div>
The div content is load OK with the result of an action in a listadoAsientos.jsp:
<div align="center">
<s:div
id="formEdicionAsientoDiv"
theme="ajax"
executeScripts="true"
>
</s:div>
<div id="loaderFormEdicionAsientoDiv" style="display:none">
<s:include value="/pages/common/carga/cargaCapa.jsp"></s:include>
</div>
</div>
The div content in his page is load with teh result of asientoContableListadoApuntes.jsp:
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:div id="formUpdateAsientoDiv" theme="ajax" executeScripts="true">
<s:include value="/pages/asiento/formUpdateAsiento.jsp"></s:include>
</s:div>
<div id="loaderFormUpdateAsientoDiv" style="display:none">
<s:include value="/pages/common/carga/cargaCapa.jsp"></s:include>
</div>
<s:include value="/pages/asiento/listadoApuntes.jsp"></s:include>
Its Ok but in formUpdateAsiento.jsp a have a submit button to refresh formEdicionAsientoDiv in listadoAsientos.jsp:
<s:submit
type="submit"
value="Si"
errorText="Error de sistema.Consulte con el administrador"
cssClass="boton"
align="center"
theme="ajax"
href="%{reabrirAsiento}"
formId="editarAsientoForm"
targets="formEdicionAsientoDiv"
onclick="dojo.widget.byId('dialogConfirmacionReabrirAsiento').hide();"
loadingText=" "
showLoadingText="true"
indicator="loaderFormEdicionAsientoDiv"
/>
When i use in the submit button executeScript = "true" the content of the div is refresh with "undefined". This examples is a bit complicated, but i have the same problem with more easy examples. When i have a div wich its content is refresh by a submit using targets and execeuteScript, and in the div is executed any code javascript, i have that the content of the div is refresh with "undefined
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.