On Jul 2, 2009, at 4:12 AM, Frank Otto wrote:

Thanks, thats works. Another questions to ajax api:

Can I create a new page and delete a page with ajax api?

More examples:

Add a page named "David" into root folder:

http://localhost:8080/jetspeed/ajaxapi?action=updatepage&method=add&path=/David&name=David&defaultLayout=jetspeed-layouts%3A%3ASimpleLayout&title=David&short-title=Dave

Remove the current page:

http://localhost:8080/jetspeed/ajaxapi/David.psml?action=updatepage&method=remove


How can I refresh the whole page (fragment) without browser reload?


While there is an api to retrieve the content of a portlet or any aggregating fragment, its not explained so simply. You would call the portlet pipeline for each fragment to be rendered. This is how the client side aggregator works in the Jetspeed Desktop: it tries to render, in parallel, each and every portlet on the page. If an action is executed, only the render methods of the portlets on the page are called; the entire page is not re-rendered. You would have to study the Jetspeed javascript (written with the DOJO library) to acquire the basic knowledge to write your own Portlet API compatible-client-side rendering engine (assuming that is what you are after). I have been prototyping just that, with another javascript library called Ext. While its interesting, the license for Ext is a bit confusing: I don't think we could use Ext at Apache.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org

Reply via email to