Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
--- Mansour [EMAIL PROTECTED] wrote: If the submit button is used inside a form (href is not required on this case), the form will be submitted asynchronously: This is note true. It can never submit from inside a form. This will never anything. It will never make any thing. I am using

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Musachy Barroso
Sometimes it helps to just ask what is wrong with my setup? instead of stating this does not work (which might be true, but not on this case). Consider looking at the examples in showcase. regards musachy On 6/23/07, Mansour [EMAIL PROTECTED] wrote: From the documentation

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Dave Newton wrote: --- Mansour [EMAIL PROTECTED] wrote: If the submit button is used inside a form (href is not required on this case), the form will be submitted asynchronously: This is note true. It can never submit from inside a form. This will never anything. It will never make any

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Dave Newton wrote: --- Mansour [EMAIL PROTECTED] wrote: How do I know if there is traffic on the wire? Use Live HTTP Headers, Firebug, Ethereal, etc. I used Live HTTP Headers, and there's nothing on the wire. There's no request. Did you say that the action worked in a

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Now this wont make any sense. I added the theme attr to the form, and it's working on all the buttons except the first one in the list! Here' my code: table id=row thead tr thTask Id/th thService Name/th thUnit Count/th thRate/Unit/th

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
--- Mansour [EMAIL PROTECTED] wrote: No, there are no msgs in the debug mode. None? s:iterator value=taskList status=stat id=row s:form action=updateTask id=form_${id} This should cause a form ID collision, which shows a debug msg, since you'll have multiple forms with the same ID. My

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
--- Mansour [EMAIL PROTECTED] wrote: How do I know if there is traffic on the wire? Use Live HTTP Headers, Firebug, Ethereal, etc. Did you say that the action worked in a non-Ajaxily? d. Shape Yahoo!

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
--- Dave Newton [EMAIL PROTECTED] wrote: This should cause a form ID collision, which shows a debug msg, since you'll have multiple forms with the same ID. Whoops, didn't see you were iterating over tasks, which presumably have an ID, so I assume the form IDs are being generated properly? d.

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Dave, the generated IDs are correct. There's the resulting HTML , I dont see what's wrong with this. table id=row thead tr thTask Id/th thService Name/th thUnit Count/th

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Dave Newton wrote: --- Dave Newton [EMAIL PROTECTED] wrote: This should cause a form ID collision, which shows a debug msg, since you'll have multiple forms with the same ID. Whoops, didn't see you were iterating over tasks, which presumably have an ID, so I assume the form IDs are

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
, June 24, 2007 2:06:44 PM Subject: Re: Submitting a form with ajax submit inside the form Dave Newton wrote: --- Dave Newton [EMAIL PROTECTED] wrote: This should cause a form ID collision, which shows a debug msg, since you'll have multiple forms with the same ID. Whoops, didn't

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
:06:44 PM Subject: Re: Submitting a form with ajax submit inside the form Dave Newton wrote: --- Dave Newton [EMAIL PROTECTED] wrote: This should cause a form ID collision, which shows a debug msg, since you'll have multiple forms with the same ID. Whoops, didn't see you

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
--- Mansour [EMAIL PROTECTED] wrote: I have deleted the whole folder for the templates. Did you clear your browser cache? Did you try to iterate over a list and create a form for each of them to update? Yes. My problem now, is the first element (ONLY) not submitting. I guess it would

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
This is funny. I am getting this msgs only on IE for windows and for linux. And things are working fine. DEBUG: DEPRECATED: dojo.style replaced by dojo.html.style -- will be removed in version: 0.5 DEBUG: DEPRECATED: dojo.animation.AnimationEvent is slated for removal in 0.5; use dojo.lfx.*

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Dave Newton wrote: Is there anything else in your action (an action property) called id? NO, there's no property called id, but there's are many ids for other beans (I.E. invoice.id , task.id ...etc). --- Mansour [EMAIL PROTECTED] wrote: This is funny. I am getting this msgs only

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
Is there anything else in your action (an action property) called id? --- Mansour [EMAIL PROTECTED] wrote: This is funny. I am getting this msgs only on IE for windows and for linux. And things are working fine. DEBUG: DEPRECATED: dojo.style replaced by dojo.html.style -- will be

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
This problem is really odd. All the items in the list posts to the same action, and all the code was generated in loop. HOW can this happen ? all the submit buttons can submit a request except the first one in the list! There's no js event fired !! Mansour wrote: Dave Newton wrote: Is

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
Is the generated HTML the same in both browsers? (Just as a sanity check.) --- Mansour [EMAIL PROTECTED] wrote: This problem is really odd. All the items in the list posts to the same action, and all the code was generated in loop. HOW can this happen ? all the submit buttons can submit a

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
--- Mansour [EMAIL PROTECTED] wrote: s:if test=#stat.odd == true tr class=odd /s:if s:else tr class=even /s:else Btw, I would change this to (minus whatever syntax / attribute name errors I'm about to make): s:set name=foo value=${#stat.odd ? 'odd' : 'even'/ tr class=${foo} ...

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Dave Newton wrote: --- Mansour [EMAIL PROTECTED] wrote: s:if test=#stat.odd == true tr class=odd /s:if s:else tr class=even /s:else Btw, I would change this to (minus whatever syntax / attribute name errors I'm about to make): s:set name=foo value=${#stat.odd ? 'odd' : 'even'/ tr

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
@struts.apache.org Sent: Sunday, June 24, 2007 7:02:31 PM Subject: Re: Submitting a form with ajax submit inside the form Dave Newton wrote: --- Mansour [EMAIL PROTECTED] wrote: s:if test=#stat.odd == true tr class=odd /s:if s:else tr class=even /s:else Btw, I would change

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
user@struts.apache.org Sent: Sunday, June 24, 2007 7:02:31 PM Subject: Re: Submitting a form with ajax submit inside the form Dave Newton wrote: --- Mansour [EMAIL PROTECTED] wrote: s:if test=#stat.odd == true tr class=odd /s:if s:else tr class=even /s:else Btw, I

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
: Submitting a form with ajax submit inside the form Yes. You did it ! You isolated the issue. It's working without any table tags. This works fine and send the request as expected: s:iterator value=taskList status=stat id=row s:form action=updateTask id=form_${row.id} method

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
the other items in the list generate an event ? Any way, I will try to modify the html template and try again. - Original Message From: Mansour [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, June 24, 2007 7:37:34 PM Subject: Re: Submitting a form with ajax

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
--- Mansour [EMAIL PROTECTED] wrote: Dave Newton wrote: Probably because the HTML being generated was invalid; isn't that why you were trying to customize the form tag templates? No, not really. I was trying to customize it so that I can remove the tr from that are surrounding the button,

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Dave Newton wrote: --- Mansour [EMAIL PROTECTED] wrote: Dave Newton wrote: Probably because the HTML being generated was invalid; isn't that why you were trying to customize the form tag templates? No, not really. I was trying to customize it so that I can remove

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
From: Mansour [EMAIL PROTECTED] And here's the result: table id=rows form namespace=/ id=form_2 name=updateTask action=/fe/updateTask.action method=post table class=wwFormTable That's still not valid HTML; now you have a form and table immediately after a table tag. d

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Dave Newton wrote: From: Mansour [EMAIL PROTECTED] And here's the result: table id=rows form namespace=/ id=form_2 name=updateTask action=/fe/updateTask.action method=post table class=wwFormTable That's still not valid HTML; now you have a form and table immediately after a

Submitting a form with ajax submit inside the form

2007-06-23 Thread Mansour
From the documentation http://struts.apache.org/2.0.8/docs/ajax-tags.html#AjaxTags-submitTag If the submit button is used inside a form (href is not required on this case), the form will be submitted asynchronously: This is note true. It can never submit from inside a form. This will never