RE: Struts w/Ajax with Struts again

2009-07-23 Thread Martin Gainty
. > Date: Thu, 23 Jul 2009 09:39:51 -0400 > From: newton.d...@yahoo.com > To: user@struts.apache.org > Subject: Re: Struts w/Ajax with Struts again > > cpanon wrote: > > What I was able to reproduce was that if I enter the action with an > > Ajax call, us

Re: Struts w/Ajax with Struts again

2009-07-23 Thread Dave Newton
cpanon wrote: What I was able to reproduce was that if I enter the action with an Ajax call, using prototype, and return with mapping.getInputForward(), the session objects do not get updated; even though I update them in the action. If, however I enter the action with a click off a html:submit

RE: Struts w/Ajax with Struts again

2009-07-23 Thread cpanon
the action was called?  --- On Tue, 7/21/09, Martin Gainty wrote: From: Martin Gainty Subject: RE: Struts w/Ajax with Struts again To: "Struts Users Mailing List" Date: Tuesday, July 21, 2009, 3:08 PM post the complete contents of struts-config.xml event timing is crucial sp

Re: Struts w/Ajax with Struts again

2009-07-21 Thread Dave Newton
Martin Gainty wrote: post the complete contents of struts-config.xml event timing is crucial specifically you'll need your Ajax control to detect ON_COMPLETE a fairly comprehensive example of handling ON_COMPLETE at http://struts.apache.org/2.0.14/docs/ajax-validation.html any objections to

RE: Struts w/Ajax with Struts again

2009-07-21 Thread Martin Gainty
ion was > defined. This should not be the case, correct? If I set the scope to > request, and if I set a change in a actionForm and set it in the request, I > should see it on the forwarded form. tia. > > --- On Mon, 7/20/09, Martin Gainty wrote: > > From: Martin Gainty

RE: Struts w/Ajax with Struts again

2009-07-21 Thread cpanon
set it in the request, I should see it on the forwarded form.  tia. --- On Mon, 7/20/09, Martin Gainty wrote: From: Martin Gainty Subject: RE: Struts w/Ajax with Struts again To: "Struts Users Mailing List" Date: Monday, July 20, 2009, 10:18 AM did you check scope="request&q

RE: Struts w/Ajax with Struts again

2009-07-20 Thread Martin Gainty
Mon, 20 Jul 2009 03:36:36 -0700 > From: cpa...@yahoo.com > Subject: Re: Struts w/Ajax with Struts again > To: user@struts.apache.org > > Hi PW > But I cant access the session objects with JS, nor can I iterate the > collections I have in the session to display the updated val

Re: Struts w/Ajax with Struts again

2009-07-20 Thread Paweł Wielgus
gt; > --- On Mon, 7/20/09, Paweł Wielgus wrote: > > From: Paweł Wielgus > Subject: Re: Struts w/Ajax with Struts again > To: "Struts Users Mailing List" > Date: Monday, July 20, 2009, 2:18 AM > > Hi cpanon, > >> I am looking for the simplest technique that wou

Re: Struts w/Ajax with Struts again

2009-07-20 Thread cpanon
Hi PW But I cant access the session objects with JS, nor can I iterate the collections I have in the session to display the updated values that were written in the Ajax processing action.  Correct? --- On Mon, 7/20/09, Paweł Wielgus wrote: From: Paweł Wielgus Subject: Re: Struts w/Ajax with

Re: Struts w/Ajax with Struts again

2009-07-19 Thread Paweł Wielgus
Hi cpanon, > I am looking for the simplest technique that would reprocess the session > objects from the new values, regenerate the full jsp, then just refresh the whole page, by javascript after completion of ajax. Or do not use ajax at all, this will be most simple solution for You. Best gree

Re: Struts w/Ajax with Struts again

2009-07-19 Thread cpanon
09, Nils-Helge Garli Hegvik wrote: From: Nils-Helge Garli Hegvik Subject: Re: Struts w/Ajax with Struts again To: "Struts Users Mailing List" Date: Sunday, July 19, 2009, 9:56 AM The form will not be updated unless you refresh the values or the part of the page that displays the values

RE: Struts w/Ajax with Struts again

2009-07-19 Thread Martin Gainty
manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 19 Jul 2009 05:34:00 -0700 > From: cpa...@yahoo.com > Subject: RE: Struts w/Ajax with Struts again > To: user@struts.apache.org > > Hi Martin > Thanks, however I havnt m

Re: Struts w/Ajax with Struts again

2009-07-19 Thread Nils-Helge Garli Hegvik
The form will not be updated unless you refresh the values or the part of the page that displays the values you want to be updated. So you would have to "manually" do this processing some returned updated values in a json result, or by returning the result of a "partial" jsp which re-renders the pa

RE: Struts w/Ajax with Struts again

2009-07-19 Thread cpanon
processing.  --- On Sat, 7/18/09, Martin Gainty wrote: From: Martin Gainty Subject: RE: Struts w/Ajax with Struts again To: "Struts Users Mailing List" Date: Saturday, July 18, 2009, 11:37 PM better off setting it in the action then access it thru ognl e.g. #session.setS

RE: Struts w/Ajax with Struts again

2009-07-18 Thread Martin Gainty
lay. I am accessing that element > with the ${seeMe} syntax. I am seeing the json results, but not what I put > in the actionForm. That is what I would "organically" expect to see. Can > you clarify this? tia. > > --- On Sat, 7/18/09, Martin Gainty wrote: > >

RE: Struts w/Ajax with Struts again

2009-07-18 Thread cpanon
rganically" expect to see.  Can you clarify this?  tia. --- On Sat, 7/18/09, Martin Gainty wrote: From: Martin Gainty Subject: RE: Struts w/Ajax with Struts again To: "Struts Users Mailing List" Date: Saturday, July 18, 2009, 9:32 PM ajax's responsibility is to return eit

RE: Struts w/Ajax with Struts again

2009-07-18 Thread Martin Gainty
ajax's responsibility is to return either json or html formatted text to innerHtml attribute of div tag identified in ajax call other activity such as refreshing session attributes would need to take place in the action class..upon return from action all tags of the jsp would re-display the