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: That's still not valid HTML; now you have a form and table immediately after a table tag. d I guess in this case I have to modify the form tag and remove this tag , right ?? I couldn't find

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: > >action="/fe/updateTask.action" method="post"> > 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: --- 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 t

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 from that are surrounding the >

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
would 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 Sent: Sunday, June 24, 2007 7:37:34 PM Subject: Re: Submitting a form with ajax s

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
the etc. tags on a plain page w/o > your extra table markup. > > - Original Message > From: Mansour <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Sent: Sunday, June 24, 2007 7:02:31 PM > Subject: Re: Submitting a form with ajax submit inside the for

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
kup. - Original Message From: Mansour <[EMAIL PROTECTED]> To: Struts Users Mailing List 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:

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
ent: 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: > >> >> >> >> >> >> >> > > Btw, I would change thi

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: Btw, I would change this to (minus whatever syntax / attribute name errors I'm about to make): ... Cleaner, shorter, and better-formed JSP. d. I agree with you. But Now I am gonna remove this totally just un

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
--- Mansour <[EMAIL PROTECTED]> wrote: > > > > > > Btw, I would change this to (minus whatever syntax / attribute name errors I'm about to make): ... Cleaner, shorter, and better-formed JSP. d.

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 su

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 there

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 on

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

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 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

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Mansour
lly and obvious, but using code almost identical to yours (I don't know how your Action is configured or implemented) I'm having no problems. d. - Original Message From: Mansour <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Sunday, June 24, 2007 2:06:44 PM Subj

Re: Submitting a form with ajax submit inside the form

2007-06-24 Thread Dave Newton
e 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 &

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 b

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. Task Id Service Name Unit Count Rate/Unit cost

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?

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? > > This should cause a form ID collision, which shows a debug msg, since you'll have multiple forms with the same ID. My test form still works, though. > Is this using the original template, or the

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: Task Id Service Name Unit Count Rate/Unit cost Edit S

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 non-Ajaxil

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 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 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 http://struts.a

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

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 a