Java Mailing List Archive

http://www.junlu.com/

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

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

Dariusz Wojtas

2007-01-20

Replies:

I will try to send it in 30 minutes.
I will try to separate some part of my app into 2 JSPs.
I hope it shows the issue.

Dariusz Wojtas

On 1/20/07, Musachy Barroso <mbarroso@(protected):
> I tried to replicate this, so I added this to index.jsp on showcase
> under apps/showcase/src/main/webapp/ajax/remotelink:
>
> <div id="target">
>   <s:form id="form" action="/AjaxTest.action" >
>     <input type=textbox name="data">
>     <s:a theme="ajax" targets="target">Try</s:a>
>   </s:form>
> </div>
>
> but it works on both IE 6 and FF 2. The anchor and the button share the
> same javascript code, so they should behave the same. They can be used
> inside a form, in which case they will submit the parent form or outside
> a form, using "formId". Adding theme="ajax" to the form should make no
> difference on this case. Can you try the above example and let me know
> if it works?
>
> thanks
> musachy

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

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