I have seen some discussions floating about lately regarding AJAX and
J2 and I have also checked out the documentation at:

http://portals.apache.org/jetspeed-2/guides/guide-ajax-api.html

However, my specific use case falls outside of portal/portlet
administration.  What I am looking to do is to use AJAX to fetch data
in XML format from a service within my application to include on the
fly within portlet content for a variety of purposes.

I am wondering if the AJAX capabilities of J2 can assist with this. 
At the moment, I believe the answer is more or less no (unless the XML
comes from the output of a portlet rendering).

At this point, my approach will be to use a servlet within my
application and by-pass the the portal.  The servlet (or some part of
the webapp outside of the realm of portlets) will then have to manage
security for the requests for the data.  This should be simple enough
by using SSO.  And this is all fine, I really don't mind doing it this
way.

However, I feel that it would be very useful to be able to provide
access to such a service through the portal (ie via the Ajax API) and
be able to use the same kind of security constraints that are commonly
placed on pages and fragments (plus then SSO wouldn't be required).

My service exists only to provide data to UI interfaces rendered by
portlets.  Thus, defining a portlet to deliver it via the rendering of
XML content and then placing it in a hidden PSML page for that sole
purpose seems like overkill.

Perhaps there exists a simple way to accomplish this through Jetspeed
that I am unaware of.  Otherwise, I suppose I am leaving this as more
of a suggestion perhaps for future functionality.  If there are others
that have similar requirements, then it may be worth creating a JIRA
entry...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to