Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [S2] Any hope to have ajax form submission working?

Musachy Barroso

2007-01-24

Replies:

After 3 hours debugging, now I see how easy it was :), when the
"targets" attribute is set to a parent element of the form, and the link
is hit, the content of the "targets" element is set to "Loading...", the
problem is that doing this will "erase" the form in IE (duh). So when
dojo iterates over the fom to build the parameters, the form is empty
(form.element.length == 0) in IE, but in FF the elements are still
there. So, when you have an scenario like this, you can't show the
loading text. Now the bad news, there is no way to prevent the loading
text from being shown, I created a ticket for it the other day with a
patch, but it is scheduled for 2.1.0:

https://issues.apache.org/struts/browse/WW-1570

It is a trivial patch, maybe we can get a committer to take a look at it :)

regards
musachy

Dariusz Wojtas wrote:
> Hmmm, if this is so black-magic then who knows if you can still
> reproduce it tomorrow?
> What if IE dies in 'some other way'?
>
> Thanks for the info, the hope is back :)
>
> Best regards
> Dariusz Wojtas
>
> On 1/24/07, Musachy Barroso <mbarroso@(protected):
>> With your latest jsp file I was able to reproduce the problem. Here is
>> were it gets Microsoft-black-magic-style. I did something, not sure
>> what, and it then started to work. I killed the "explorer" process, and
>> start it again, and was able to reproduce it again, looks like a though
>> one :)
>>
>> regards
>> musachy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.