This content has been marked as final.
Show 3 replies
-
1. Re: remove the drag and drop but keep portlet decoration
julien1 Mar 29, 2007 9:55 AM (in response to fredf)no look at the property that inhibits ajax stuff which is "theme.ajax.object_enabled". If on a portal object you put this property with a value of "false" it should disable DnD for this part.
you can set the property using the xml desc, it has not been redone yet in the new admin UI. -
2. Re: remove the drag and drop but keep portlet decoration
fredf Mar 29, 2007 10:34 AM (in response to fredf)"julien@jboss.com" wrote:
no look at the property that inhibits ajax stuff which is "theme.ajax.object_enabled". If on a portal object you put this property with a value of "false" it should disable DnD for this part.
you can set the property using the xml desc, it has not been redone yet in the new admin UI.
Ok, I missed that one.
Now, I want to do this programmatically in my "portal service package" called from a SEAM component. I see that if I want to set it on a whole region I must get the region instance from PageRenditionRegion region = rendition.getPageResult().getRegion("myRegion"); region.setProperty(ThemeConstants.PORTAL_AJAX_OBJECT_DISABLED, "true");
Can I get hold of this region object without creating an interceptor (I see that the PageRendition comes from the cmd.invokeNext();)
thanks -
3. Re: remove the drag and drop but keep portlet decoration
fredf Apr 24, 2007 11:10 AM (in response to fredf)I found out that I have the region reference in the RegionTagHandler. Now I can write my own regiontag and provide the rendercontext with the ThemeConstants.PORTAL_AJAX_OBJECT_DISABLED to the renderer.
The question is ifregion.setProperty(ThemeConstants.PORTAL_AJAX_OBJECT_DISABLED, "true");
will write the property to the portal database or just be used in the particular page request. What happens if I set this property on a region. Will it be persisted or just used in the request?