Nice tip Scott, thx. I have a question for you though, and this more just to get some ideas going in my head. I'm just wondering what your main use case for this type of scenario is?
If you were putting the div tag below in one portlet only to pull content from another, why wouldn't you just call the second portlet in the first place? I am sure you have your reasons, and that is why I am curious. I am betting you are using AJAX in combination with your portlets in a pretty cool way... To this point, my main use cases for AJAX (and dojo for that matter) has been to: 1. Dynamically populate HTML form elements (eg. select options) based on selections in previous HTML elements. 2. On-demand triggering of time-consuming tasks on the server asynchronously so that the client does not block while waiting for it to terminate (eg. running a report). For the second one, I may pull down HTML mark-up or it may come in the form of XML data , I haven't decided yet. For the first, it will definitely be XML based. So I suppose my use cases thus far have been more data/service oriented, but I am interested in expanding my use of this technology... thx, aaron On 3/20/06, Scott T Weaver <[EMAIL PROTECTED]> wrote: > Which, in turn, is easily accomplished in dojo using the ContentPane widget: > > <script type="text/javascript" src="dojo.js"></script> > <script language="JavaScript" type="text/javascript"> > dojo.require("dojo.widget.ContentPane"); > </script> > > ... > > <div dojotype="ContentPane" class="box" href=" > http://ip:port/jetspeed/portlet/?portlet=portlet-app::portlet-name&entity=id > " > > </div> > > Regards, > -Scott > > > -----Original Message----- > > From: Cubehead Fang [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 20, 2006 8:58 AM > > To: Jetspeed Users List > > Subject: Re: AJAX in Jetspeed > > > > You can get the portlet by using such url > > > > http://ip:port/jetspeed/portlet/?portlet=portlet-app::portlet- > > name&entity=id > > > > > > On 3/20/06, Aaron Evans <[EMAIL PROTECTED]> wrote: > > > > > > I have looked at the documentation for the pipeline here: > > > > > > http://portals.apache.org/jetspeed-2/guides/guide-pipeline.html > > > > > > And do not see any kind of hint as to how I might invoke a single > > > portlet via AJAX... > > > > > > On 3/17/06, Cubehead Fang <[EMAIL PROTECTED]> wrote: > > > > of course, you can call the portlets by AJAX. Please see the portlet > > > > pipeline. > > > > > > > > On 3/17/06, Anton <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Aaron, > > > > > > > > > > Thank you. That clears it for me. I still think it would be nice to > > > have a > > > > > bridge to Allow AJAX calling portlets, but current approach solves > > > immediate > > > > > problems with porting existing applications to portal. > > > > > > > > > > Thanks again. > > > > > Anton > > > > > > > > > > Aaron Evans <[EMAIL PROTECTED]> wrote: If you have the > > > > > 'emptySessionPath' parameter set to true in your > > > > > tomcat's server.xml, then any objects you store in the user's > > session > > > > > with APPLICATION_SCOPE scope are available in the session from a > > > > > servlet that lives in the same application as your portlets. > > > > > > > > > > Thus, if you are using an Ajax toolkit like dojo (or if you simply > > use > > > > > the XMLHttpRequest javascript object directly) and your client > > > > > Javascript hits the URI of a servlet (within your application) > > > > > directly (thereby by-passing the portal), then it will work the way > > > > > you want. > > > > > > > > > > It really has nothing to do with jetspeed at that point... > > > > > > > > > > > > > > > > > > > > On 3/16/06, Anton wrote: > > > > > > Thanks! > > > > > > > > > > > > Well, actually looks I made a wrong question: I actually need to > > be > > > able > > > > > to call servlet from AJAX. Servlet should have access to user's > > > session (I > > > > > know it is possible to share objects between applications, but I > > find > > > this > > > > > somewhat obscure way to solve the problem). As long as JetSpeed 2 > > > claims > > > > > "full support for AJAX" there should be way to call server-side > > > objects > > > > > without sacrificing any of the functionality. > > > > > > > > > > > > I thought I saw some thread on this issue a while ago, but now I > > > > > couldn't find anything related. > > > > > > > > > > > > Thanks again, > > > > > > Anton > > > > > > > > > > > > po2son > > > > > wrote: Jetspeed2 include dojo package(ajax) > > > > > > Look at this. > > > > > > http://dojotoolkit.org/ > > > > > > > > > > > > -----Original Message----- > > > > > > From: Anton [mailto:[EMAIL PROTECTED] > > > > > > Sent: Thursday, March 16, 2006 5:22 AM > > > > > > To: jetspeed-user@portals.apache.org > > > > > > Subject: AJAX in Jetspeed > > > > > > > > > > > > Hi, > > > > > > > > > > > > I spent 2 days searching on some guide how to use AJAX, and all I > > > found > > > > > > that there are some pre-built admin actions. I would like to have > > > custom > > > > > > AJAX code (requesting data from server) in my application. Any > > > clues? > > > > > > > > > > > > Thanks, > > > > > > Anton > > > > > > > > > > > > > > > > > > --------------------------------- > > > > > > Yahoo! Mail > > > > > > Use Photomail to share photos without annoying attachments. > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: jetspeed-user- > > [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------- > > > > > > Yahoo! Travel > > > > > > Find great deals to the top 10 hottest destinations! > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > - > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: jetspeed-user- > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------- > > > > > Relax. Yahoo! Mail virus scanning helps detect nasty viruses! > > > > > > > > > > > > > > > > > > > > > -- > > > > Thanks, > > > > Cubehead Fang > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Thanks, > > Cubehead Fang > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]