[jboss-user] [JBoss Portal] - Re: probleme with
eagleIT
do-not-reply at jboss.com
Fri Jun 15 04:57:06 EDT 2007
Sorry for the bad title.
So i use the function page.createWindow , the window is well stored in the database, but unfortunately the window is not visible in my portal , even after logout/login. the window just doesn't appear. I think my portalObjectContainer is not reinjected. The portlet Perzonalize bundled with Jboss Portlet works just fine.
* Action pour ajouter une window dans une page donnée, avec une région donnée
| */
| public void actionAddWindow() {
| Page page = (Page) this.selectedPage;
| try {
|
| String instanceName = this.selectedPortletName;
| String nameWindow = this.selectedPortletName.replaceAll("Instance", "Window");
| nameWindow = nameWindow + (int) (100 * Math.random());
| Window window = page.createWindow(nameWindow, ContentType.PORTLET, instanceName);
| Content content = window.getContent();
|
| window.setDeclaredProperty(ThemeConstants.PORTAL_PROP_REGION, this.selectedRegionName);
| window.setDeclaredProperty(ThemeConstants.PORTAL_PROP_ORDER, "" + Integer.MAX_VALUE);
|
|
| reinitOrderWindows(window);
|
| //this.portletInfo.getPortletContext().setAttribute("PortalObjectContainer", portalObjectContainer);
| //this.portletInfo.getPortletContext().setAttribute("InstanceContainer", instanceContainer);
|
| } catch (DuplicatePortalObjectException unexpected) {
| unexpected.printStackTrace();
| }
|
| }
Sorry for the poor english ;)
Best Regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054648#4054648
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054648
More information about the jboss-user
mailing list