You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Patrick J. Maloney (JIRA)" <ji...@apache.org> on 2007/04/23 23:32:43 UTC

[jira] Commented: (WW-1598) Ajax forms do not get submitted

    [ https://issues.apache.org/struts/browse/WW-1598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40883 ] 

Patrick J. Maloney commented on WW-1598:
----------------------------------------

In 2.0.6, I was always getting "Could not load 'dojo.widget.html.Tooltip'; last tried '__package__.js' " error.  I updated the two form-close.ftl files in the core jar, replacing 'dojo.widget.html.Tooltip' with 'dojo.widgetTooltip' and this error went away.  Was this the correct solution?

> Ajax forms do not get submitted
> -------------------------------
>
>                 Key: WW-1598
>                 URL: https://issues.apache.org/struts/browse/WW-1598
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>         Environment: Windows xp, IE 6
> Custom build from S2 trunk as of today
>            Reporter: Dariusz Wojtas
>         Assigned To: Don Brown
>            Priority: Critical
>             Fix For: 2.0.6
>
>         Attachments: index.jsp
>
>
> Simplef page:
> <html>
> <head>
> <s:head theme="ajax"/>
> </head>
> <body>
> 	<s:form id="szukajOsobeWniosek" action="/my/index" theme="ajax" method="POST">
> 		<s:hidden name="showSearchForm"/>
> 		<s:textfield name="aaaaa" label="Aaaaa"/>
> 		<s:textfield name="name" label="Name"/>
> 		<s:submit cssClass="btn" value="Szukaj"/>
> 	</s:form>
> </body>
> </html>
> It renders simple HTML with a form and a button.
> Pressing the button does not submit the page.
> When I submit it under FF I can see that some scripts could not be fetched  (404):
> GET http://localhost:8080/esu/struts/dojo/struts/widget/DatePicker.js
> GET http://localhost:8080/esu/struts/dojo/struts/widget.js
> GET http://localhost:8080/esu/struts/dojo/struts/__package__.js
> GET http://localhost:8080/esu/struts/dojo/struts.js
> GET http://localhost:8080/esu/struts/dojo/__package__.js
> GET http://localhost:8080/esu/struts/dojo/src/widget/html/Tooltip.js
> GET http://localhost:8080/esu/struts/dojo/src/widget/html.js
> GET http://localhost:8080/esu/struts/dojo/src/widget.js
> GET http://localhost:8080/esu/struts/dojo/src/__package__.js
> GET http://localhost:8080/esu/struts/dojo/src.js
> GET http://localhost:8080/esu/struts/dojo/__package__.js
> Could not load 'dojo.widget.html.Tooltip'; last tried '__package__.js'
> [Break on this error] throw _13||Error(_12);
> dojo.js (line 94)
> Could not load 'struts.widget.DatePicker'; last tried '__package__.js'
> [Break on this error] null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.