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: [email protected]
> > > > > 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]

Reply via email to