Re: Integrating AJAX into Struts

2005-11-11 Thread Frank W. Zammetti
Well, at the end of the day it doesn't really matter any more anyway... I believe the AjaxTags in JWP is a better, more powerful and more flexible solution, and is non-invasive to an existing app, be it Struts or not. In a way, the fact that everyone didn't fall in love with the original idea

Re: Integrating AJAX into Struts

2005-11-11 Thread Wendy Smoak
On 11/11/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Well, I don't know if any other committer has ever used FormDef. Some > of them haven't even heard of it before. It hasn't stopped people > from using it, though. I had never even heard of it until very recently. You need to advertise mor

Re: Integrating AJAX into Struts

2005-11-11 Thread Hubert Rabago
On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > You are right, multiwindow thing breaks this idea. Maybe I could > introduce a flag "this formbean was submitted to" and remove only > submitted beans. Or flag "this form bean was processed"... Got a > better idea by any chance? Sorry,

Re: Integrating AJAX into Struts

2005-11-11 Thread Michael Jouravlev
On 11/11/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > > I added a "scenario" attribute to element, and on each > > > > request I am going to check session and to clean all form beans that > > > > do not correspond to action's scenar

Re: Integrating AJAX into Struts

2005-11-11 Thread Hubert Rabago
On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > I don't agree with you. I don't mind agreeing to disagree. :) > Eclipse is an empty hangar, which can be > filled up with tools, benches and other machinery. You use each > machine as it is supposed to be used, and you use the hangar j

Re: Integrating AJAX into Struts

2005-11-11 Thread Hubert Rabago
On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > I added a "scenario" attribute to element, and on each > > > request I am going to check session and to clean all form beans that > > > do not correspond to action's scenario ("scenario" attribute can > > > enlist several scenarios th

Re: Integrating AJAX into Struts

2005-11-11 Thread Michael Jouravlev
On 11/11/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Please keep this in mind > > if you will work on action/form combo :) > > Why not make sure by taking a look at what I'm doing and maybe working > on it, too? > > Oh, waitasec, I've

Re: Integrating AJAX into Struts

2005-11-11 Thread Hubert Rabago
Oops, I was actually replying to this part: > I wish I could > remember what it was, but I don't. On 11/11/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > On 11/11/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Hell, it's quite possible I simply didn't think it through enough to > > realiz

Re: Integrating AJAX into Struts

2005-11-11 Thread Hubert Rabago
On 11/11/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Hell, it's quite possible I simply didn't think it through enough to > realize the simple solution :) I remember. You had something you wanted to modify in BaseHandlerTag. Niall's validatorjs extension modifies a base class, too: BaseFi

Re: Integrating AJAX into Struts

2005-11-11 Thread Hubert Rabago
On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Please keep this in mind > if you will work on action/form combo :) Why not make sure by taking a look at what I'm doing and maybe working on it, too? Oh, waitasec, I've no plans yet of nominating what I'm doing into the core, so if that

Re: Integrating AJAX into Struts

2005-11-11 Thread Michael Jouravlev
On 11/11/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > > Oops, am I blind or what? Hubert, this is awesome! Thanks a > > bunch, I would like to, er..., purloin this stuff for my use :-) > > Sure, have fun! Be aware though that there'

Re: Integrating AJAX into Struts

2005-11-11 Thread Hubert Rabago
On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Oops, am I blind or what? Hubert, this is awesome! Thank a > bunch, I would like to, er..., purloin this stuff for my use :-) Sure, have fun! Be aware though that there's a lot of, uhm, "opportunities for improvement" here. I've alrea

Re: Integrating AJAX into Struts

2005-11-11 Thread Michael Jouravlev
On 11/11/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > I saw a very nice client-only script to validate simple things like > > numbers, dates, emails and is field is empty or not: > > http://www.themaninblue.com/writing/perspective/2005

Re: Integrating AJAX into Struts

2005-11-11 Thread Martin Cooper
On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > On 11/11/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > > On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > On 11/10/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > > > > In my "day job", we're just wrapping up a fairly larg

Re: Integrating AJAX into Struts

2005-11-11 Thread Michael Jouravlev
On 11/11/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > On 11/10/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > > > In my "day job", we're just wrapping up a fairly large Struts app that's > > > heavily "AJAX"-enabled. We use the Commons

Re: Integrating AJAX into Struts

2005-11-11 Thread Martin Cooper
On 11/11/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > On 11/10/05, Stephan Heilner <[EMAIL PROTECTED]> wrote: > > With all the momentum towards AJAX, has anyone started to undertake > > integrating AJAX into Struts. I think that it could be relatively easy > > using DWR (http://getahead.ltd

Re: Integrating AJAX into Struts

2005-11-11 Thread Frank W. Zammetti
Hubert Rabago wrote: I was (still am) among those who think that we don't need it to be made part of the struts download to be useful. You could use html2 just by including its jar and changing the TLD URI you specify in your JSP: http://www.rabago.net/struts/html2/#tlds I admit the details ar

Re: Integrating AJAX into Struts

2005-11-11 Thread Michael Jouravlev
On 11/10/05, Stephan Heilner <[EMAIL PROTECTED]> wrote: > With all the momentum towards AJAX, has anyone started to undertake > integrating AJAX into Struts. I think that it could be relatively easy > using DWR (http://getahead.ltd.uk/dwr/). Here's how I'm thinking you > could do it: ... > The be

Re: Integrating AJAX into Struts

2005-11-11 Thread Hubert Rabago
On 11/10/05, Stephan Heilner <[EMAIL PROTECTED]> wrote: > The benefit of validating forms this way, is that you won't have to > actually post the form to validate it. You can have real-time > validation (done with java) and not have to reload the page. I also played around with this idea, just as

Re: Integrating AJAX into Struts

2005-11-10 Thread Martin Cooper
On 11/10/05, Stephan Heilner <[EMAIL PROTECTED]> wrote: > > With all the momentum towards AJAX, has anyone started to undertake > integrating AJAX into Struts. I think that it could be relatively easy > using DWR (http://getahead.ltd.uk/dwr/). Here's how I'm thinking you > could do it: > > Since St

Re: Integrating AJAX into Struts

2005-11-10 Thread Frank W. Zammetti
Been there, done that :) http://struts.sourceforge.net/ajaxtags/index.html Unfortunately, the idea was not especially well-recieved when I offered to continue the work and make it a real, official part of the Struts taglibs, so there is now a frankly much better non-Struts-specific version in