David Le Strat <dlestrat <at> yahoo.com> writes: > > Ryan, > > Santiago can provide more details but J2 supports > Ajax. We currently have a Ajax Branch in CVS (Work in > Progress) as well as an AjaxEngine used by a few of > the admin portlets. > > Regards, > > David Le Strat. >
I decided that this discussion warrants a new thread. If you could point to a specific example that uses Ajax that would be good. I am trying to figure out how to have Ajax fit within my portlet apps. If I were to do it in the normal fashion using an XMLHttpRequest javascript object and invoke a URI that will return XML output, it seems to me I have two options for the server-side Ajax URI: 1. Hit a servlet URI outside of the portal that generates the XML output. Pretty straight-forward except now I have the SSO issue to deal with, but I suppose I I have to deal with that anyway for binary downloads from portlets. 2. Generate and use a portal URI. In this case, I guess I would write the Ajax server-side component as a portlet that returns XML. I would then have to "wrap" it in a special psml page that outputs nothing except the XML output of the portlet. This *should* be straight-forward enough but like the pop-up portlet pages, my portlet app now depends on particular psml resources being installed in the jetspeed application and I must hard-code or configure those .psml file names. If there is a better way/idea, I'd love to hear it. However, I'd like to keep my portlet apps as platform neutral as possible. Not that I'm planning on moving away from jetspeed or anything, but this is of course the whole idea and philosophy of first Java, then JDBC, J2EE and now JSR168. Thoughts anyone? As an aside, the more I think about this AJAX stuff, with all the hype around SOA (which I am not sure is warranted), they should make somekind of generic web service client stubs in javascript so that the server-side component of AJAX can be re-usable web services. Just a thought... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
