JBoss Portal SVN: r11127 - in branches/JBoss_Portal_Branch_2_7: faces/src/main/org/jboss/portal/faces/component/portlet and 1 other directories.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2008-06-24 08:40:58 -0400 (Tue, 24 Jun 2008)
New Revision: 11127
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ControllerPageNavigationalState.java
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ControllerUserContext.java
branches/JBoss_Portal_Branch_2_7/faces/src/main/org/jboss/portal/faces/component/portlet/JSFUserContext.java
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/UserContextConverter.java
Log:
- Fix for WSRP
- Fixing UserContext implementations
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ControllerPageNavigationalState.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ControllerPageNavigationalState.java 2008-06-24 11:44:59 UTC (rev 11126)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ControllerPageNavigationalState.java 2008-06-24 12:40:58 UTC (rev 11127)
@@ -320,7 +320,7 @@
PortletInfo info = controllerContext.getPortletInfo(windowName);
//
- if (info != null)
+ if (info != null && info.getNavigation() != null)
{
Map<String, String[]> publicNavigationalState = new HashMap<String, String[]>();
for (ParameterInfo parameterInfo : info.getNavigation().getPublicParameters())
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ControllerUserContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ControllerUserContext.java 2008-06-24 11:44:59 UTC (rev 11126)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ControllerUserContext.java 2008-06-24 12:40:58 UTC (rev 11127)
@@ -22,13 +22,14 @@
******************************************************************************/
package org.jboss.portal.core.controller.portlet;
+import org.jboss.portal.common.invocation.AttributeResolver;
+import org.jboss.portal.common.invocation.Scope;
import org.jboss.portal.common.util.Tools;
import org.jboss.portal.core.controller.ControllerContext;
import org.jboss.portal.identity.User;
import org.jboss.portal.portlet.spi.UserContext;
import org.jboss.portal.server.ServerInvocation;
-import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
@@ -50,13 +51,14 @@
private final Map<String, String> profile;
/** . */
- private Map<String, Object> attributes;
+ private AttributeResolver principalAttributeResolver;
public ControllerUserContext(ControllerContext controllerContext)
{
this.invocation = controllerContext.getServerInvocation();
this.user = controllerContext.getUser();
this.profile = controllerContext.getUserProfile();
+ this.principalAttributeResolver = controllerContext.getAttributeResolver(Scope.PRINCIPAL_SCOPE);
}
public String getId()
@@ -86,21 +88,12 @@
public Object getAttribute(String arg0)
{
- if (attributes != null)
- {
- return attributes.get(arg0);
- }
- return null;
+ return principalAttributeResolver.getAttribute(arg0);
}
public void setAttribute(String arg0, Object arg1)
{
- if (attributes == null)
- {
- attributes = new HashMap<String, Object>();
- }
- attributes.put(arg0, arg1);
-
+ principalAttributeResolver.setAttribute(arg0, arg1);
}
}
Modified: branches/JBoss_Portal_Branch_2_7/faces/src/main/org/jboss/portal/faces/component/portlet/JSFUserContext.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/faces/src/main/org/jboss/portal/faces/component/portlet/JSFUserContext.java 2008-06-24 11:44:59 UTC (rev 11126)
+++ branches/JBoss_Portal_Branch_2_7/faces/src/main/org/jboss/portal/faces/component/portlet/JSFUserContext.java 2008-06-24 12:40:58 UTC (rev 11127)
@@ -22,16 +22,16 @@
******************************************************************************/
package org.jboss.portal.faces.component.portlet;
-import org.jboss.portal.common.util.Tools;
-import org.jboss.portal.portlet.spi.UserContext;
-
-import javax.faces.context.FacesContext;
-
-import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
+import javax.faces.context.FacesContext;
+
+import org.jboss.portal.common.NotYetImplemented;
+import org.jboss.portal.common.util.Tools;
+import org.jboss.portal.portlet.spi.UserContext;
+
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision$
@@ -42,9 +42,6 @@
/** . */
private final FacesContext faces;
- /** . */
- private Map<String, Object> attributes;
-
public JSFUserContext(FacesContext faces)
{
this.faces = faces;
@@ -69,22 +66,15 @@
{
return Tools.toList(faces.getExternalContext().getRequestLocales());
}
-
+
public Object getAttribute(String arg0)
{
- if (attributes != null)
- {
- return attributes.get(arg0);
- }
- return null;
+ throw new NotYetImplemented();
}
public void setAttribute(String arg0, Object arg1)
{
- if (attributes == null)
- {
- attributes = new HashMap<String, Object>();
- }
- attributes.put(arg0, arg1);
+ throw new NotYetImplemented();
}
+
}
Modified: branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/UserContextConverter.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/UserContextConverter.java 2008-06-24 11:44:59 UTC (rev 11126)
+++ branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/UserContextConverter.java 2008-06-24 12:40:58 UTC (rev 11127)
@@ -24,6 +24,8 @@
package org.jboss.portal.wsrp;
import static org.jboss.portal.common.p3p.P3PConstants.*;
+
+import org.jboss.portal.common.NotYetImplemented;
import org.jboss.portal.portlet.spi.UserContext;
import org.jboss.portal.wsrp.core.Contact;
import org.jboss.portal.wsrp.core.EmployerInfo;
@@ -291,20 +293,12 @@
public Object getAttribute(String arg0)
{
- if (attributes != null)
- {
- return attributes.get(arg0);
- }
- return null;
+ throw new NotYetImplemented();
}
public void setAttribute(String arg0, Object arg1)
{
- if (attributes == null)
- {
- attributes = new HashMap<String, Object>();
- }
- attributes.put(arg0, arg1);
+ throw new NotYetImplemented();
}
}
}
17 years, 10 months
JBoss Portal SVN: r11126 - in branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core: model/portal/coordination and 1 other directory.
by portal-commits@lists.jboss.org
Author: bdaw
Date: 2008-06-24 07:44:59 -0400 (Tue, 24 Jun 2008)
New Revision: 11126
Removed:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/EventWiringInfo.java
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ParameterBindingInfo.java
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/EventWiringInfo.java
Log:
small change
Deleted: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/EventWiringInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/EventWiringInfo.java 2008-06-23 17:13:00 UTC (rev 11125)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/EventWiringInfo.java 2008-06-24 11:44:59 UTC (rev 11126)
@@ -1,42 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-
-package org.jboss.portal.core.controller.portlet;
-
-import org.jboss.portal.core.model.portal.Window;
-
-import javax.xml.namespace.QName;
-import java.util.Collection;
-
-/**
- * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version : 0.1 $
- */
-public interface EventWiringInfo
-{
-
- QName getName();
-
- Collection<Window> getSources();
-
- Collection<Window> getDestinations();
-}
Deleted: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ParameterBindingInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ParameterBindingInfo.java 2008-06-23 17:13:00 UTC (rev 11125)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/ParameterBindingInfo.java 2008-06-24 11:44:59 UTC (rev 11126)
@@ -1,40 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-
-package org.jboss.portal.core.controller.portlet;
-
-import org.jboss.portal.core.model.portal.Window;
-
-import javax.xml.namespace.QName;
-import java.util.Collection;
-
-/**
- * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version : 0.1 $
- */
-public interface ParameterBindingInfo
-{
- QName getName();
-
- Collection<Window> getWindows();
-
-}
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java 2008-06-23 17:13:00 UTC (rev 11125)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java 2008-06-24 11:44:59 UTC (rev 11126)
@@ -30,6 +30,7 @@
import javax.xml.namespace.QName;
import java.util.Collection;
import java.util.Set;
+import java.util.Map;
/**
* Interface defining operations for explicit event wiring management
@@ -78,10 +79,10 @@
*
* @param sources
* @param targets
- * @param eventQName
+ * @param eventName
* @throws IllegalCoordinationException
*/
- void setEventWiring(Set<Window> sources, Set<Window> targets, QName eventQName) throws IllegalCoordinationException;
+ void setEventWiring(Map<Window, QName> sources, Map<Window, QName> targets, String eventName) throws IllegalCoordinationException;
/**
* Remove wiring
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/EventWiringInfo.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/EventWiringInfo.java 2008-06-23 17:13:00 UTC (rev 11125)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/EventWiringInfo.java 2008-06-24 11:44:59 UTC (rev 11126)
@@ -26,6 +26,7 @@
import javax.xml.namespace.QName;
import java.util.Collection;
+import java.util.Map;
/**
* @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
@@ -34,9 +35,9 @@
public interface EventWiringInfo
{
- QName getName();
+ String getName();
- Collection<Window> getSources();
+ Map<Window, QName> getSources();
- Collection<Window> getDestinations();
+ Map<Window, QName> getDestinations();
}
17 years, 10 months
JBoss Portal SVN: r11125 - branches/JBoss_Portal_Branch_2_7/build.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2008-06-23 13:13:00 -0400 (Mon, 23 Jun 2008)
New Revision: 11125
Modified:
branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml
Log:
Updated more libraries. Should built now.
Modified: branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml 2008-06-23 16:23:21 UTC (rev 11124)
+++ branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml 2008-06-23 17:13:00 UTC (rev 11125)
@@ -110,13 +110,13 @@
<componentref name="trove" version="1.0.2"/>
<componentref name="sleepycat" version="3.0.12"/>
<componentref name="slf4j" version="1.0.2"/>
- <componentref name="sun-jaf" version="1.0.2"/>
+ <componentref name="sun-jaf" version="1.1"/>
<componentref name="sun-javacc" version="3.2-portal"/>
<componentref name="sun-javamail" version="1.3.1"/>
<componentref name="sun-jsf" version="1.2_04_P02"/>
<componentref name="sun-opends" version="snapshot"/>
<componentref name="sun-servlet" version="2.4"/>
- <componentref name="sun-jaxb" version="2.0"/>
+ <componentref name="sun-jaxb" version="2.1.4"/>
<componentref name="xdoclet" version="1.2.3"/>
<componentref name="jbpm/jpdl" version="3.2.2"/>
<componentref name="freemarker" version="2.3.9"/>
17 years, 10 months
JBoss Portal SVN: r11124 - branches/JBoss_Portal_Branch_2_7/build.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2008-06-23 12:23:21 -0400 (Mon, 23 Jun 2008)
New Revision: 11124
Modified:
branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml
Log:
Update thirdparty libs for WSRP. Still need appropriate version of test module.
Modified: branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml 2008-06-23 16:17:51 UTC (rev 11123)
+++ branches/JBoss_Portal_Branch_2_7/build/build-thirdparty.xml 2008-06-23 16:23:21 UTC (rev 11124)
@@ -49,7 +49,7 @@
<componentref name="jboss-portal/modules/common" version="1.2.0"/>
<componentref name="jboss-portal/modules/web" version="1.2.0"/>
- <componentref name="jboss-portal/modules/test" version="1.1.0"/>
+ <componentref name="jboss-portal/modules/test" version="1.0.1"/>
<componentref name="jboss-portal/modules/portlet" version="trunk-SNAPSHOT"/>
<componentref name="jboss-portal/modules/identity" version="1.0-SNAPSHOT"/>
<componentref name="antlr" version="2.7.6.ga"/>
@@ -81,7 +81,7 @@
<componentref name="hibernate" version="3.2.0.CR2"/>
<componentref name="httpunit" version="1.6"/>
<componentref name="hsqldb" version="1.8.0.2"/>
- <componentref name="ibm-wsdl4j" version="1.5.2jboss"/>
+ <componentref name="ibm-wsdl4j" version="1.6.2"/>
<componentref name="jakarta-cactus" version="1.7.2"/>
<componentref name="jakarta-io" version="1.0"/>
<componentref name="jbossas/core-libs" version="4.0.4.GA"/>
@@ -89,10 +89,11 @@
<componentref name="jboss/backport-concurrent" version="2.1.0.GA"/>
<componentref name="jboss/cache" version="1.4.1.SP3"/>
<componentref name="jboss/jbossretro-rt" version="1.0.3.GA"/>
- <componentref name="jboss/jbossws14" version="1.0.3.GA"/>
+ <componentref name="jboss/jbossws" version="2.0.1.SP2"/>
<componentref name="jboss/jbossxb" version="1.0.0.CR7"/>
<componentref name="jboss/microcontainer" version="1.0.2"/>
- <componentref name="jboss/remoting" version="1.4.3.GA"/>
+ <!-- <componentref name="jboss/remoting" version="1.4.3.GA"/> -->
+ <componentref name="jboss/remoting" version="2.2.0.SP4"/>
<componentref name="jboss/serialization" version="1.0.1.GA"/>
<componentref name="jboss/test" version="1.0.0.CR1"/>
<componentref name="jflex" version="1.4.0"/>
17 years, 10 months
JBoss Portal SVN: r11123 - branches/JBoss_Portal_Branch_2_7/wsrp/src/resources/tests/test-wsrp-producer-sar/META-INF.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2008-06-23 12:17:51 -0400 (Mon, 23 Jun 2008)
New Revision: 11123
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/resources/tests/test-wsrp-producer-sar/META-INF/jboss-service.xml
Log:
- More fixing to WSRP tests (still doesn't work).
Modified: branches/JBoss_Portal_Branch_2_7/wsrp/src/resources/tests/test-wsrp-producer-sar/META-INF/jboss-service.xml
===================================================================
--- branches/JBoss_Portal_Branch_2_7/wsrp/src/resources/tests/test-wsrp-producer-sar/META-INF/jboss-service.xml 2008-06-23 16:16:42 UTC (rev 11122)
+++ branches/JBoss_Portal_Branch_2_7/wsrp/src/resources/tests/test-wsrp-producer-sar/META-INF/jboss-service.xml 2008-06-23 16:17:51 UTC (rev 11123)
@@ -67,7 +67,7 @@
xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
<xmbean/>
</mbean>
- <mbean code="org.jboss.portal.server.impl.invocation.JBossInterceptorStackFactory"
+ <mbean code="org.jboss.portal.server.impl.invocation.JBossPortletInterceptorStackFactory"
name="portal:service=InterceptorStackFactory,type=Container" xmbean-dd=""
xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
<xmbean/>
17 years, 10 months
JBoss Portal SVN: r11122 - branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2008-06-23 12:16:42 -0400 (Mon, 23 Jun 2008)
New Revision: 11122
Removed:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/IllegalCoordinationException.java
Log:
- Really remove moved class.
Deleted: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/IllegalCoordinationException.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/IllegalCoordinationException.java 2008-06-23 16:13:54 UTC (rev 11121)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/IllegalCoordinationException.java 2008-06-23 16:16:42 UTC (rev 11122)
@@ -1,31 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-
-package org.jboss.portal.core.controller.portlet;
-
-/**
- * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version : 0.1 $
- */
-public class IllegalCoordinationException extends Exception
-{
-}
17 years, 10 months
JBoss Portal SVN: r11121 - branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/consumer.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2008-06-23 12:13:54 -0400 (Mon, 23 Jun 2008)
New Revision: 11121
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/consumer/RequestPrecursor.java
Log:
Fix markup info
Modified: branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/consumer/RequestPrecursor.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/consumer/RequestPrecursor.java 2008-06-23 16:12:31 UTC (rev 11120)
+++ branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/consumer/RequestPrecursor.java 2008-06-23 16:13:54 UTC (rev 11121)
@@ -111,7 +111,7 @@
markupParams = WSRPTypeFactory.createMarkupParams(securityContext.isSecure(),
WSRPUtils.convertLocalesToRFC3066LanguageTagArray(userContext.getLocales()),
- new String[]{streamInfo.getMediaType().toString()}, mode, windowState);
+ new String[]{streamInfo.getMediaType().getValue()}, mode, windowState);
String userAgent = WSRPConsumerImpl.getHttpRequest(invocation).getHeader(USER_AGENT);
markupParams.setClientData(WSRPTypeFactory.createClientData(userAgent));
StateString navigationalState = invocation.getNavigationalState();
17 years, 10 months
JBoss Portal SVN: r11120 - in branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core: model/portal/coordination and 1 other directory.
by portal-commits@lists.jboss.org
Author: chris.laprun(a)jboss.com
Date: 2008-06-23 12:12:31 -0400 (Mon, 23 Jun 2008)
New Revision: 11120
Added:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/IllegalCoordinationException.java
Removed:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/EventCoordinationManager.java
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java
Log:
- Fix (?) explicit event wiring model.
Deleted: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/EventCoordinationManager.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/EventCoordinationManager.java 2008-06-23 15:19:22 UTC (rev 11119)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/EventCoordinationManager.java 2008-06-23 16:12:31 UTC (rev 11120)
@@ -1,232 +0,0 @@
-/*
-* JBoss, a division of Red Hat
-* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-
-package org.jboss.portal.core.controller.portlet;
-
-import org.jboss.portal.core.model.portal.Window;
-import org.jboss.portal.core.model.portal.Page;
-import org.jboss.portal.core.model.portal.PageContainer;
-import org.jboss.portal.portlet.controller.event.Event;
-
-import javax.xml.namespace.QName;
-import java.util.Set;
-import java.util.Collection;
-
-/**
- * Interface defining operations for explicit event wiring management
- *
- * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
- * @version : 0.1 $
- */
-public interface EventCoordinationManager
-{
-
- enum ImplicitStrategy
- {
- // Explicit wiring takes precedence
- FALLBACK,
-
- // Only implicit wiring enabled
- EXCLUSIVE,
-
- // Implicit wiring disabled
- DISABLED,
-
- // Inherited by children nodes in the tree
- RECURSIVE_FALLBACK,
-
- // .
- RECURSIVE_EXCLUSIVE,
-
- // .
- RECURSIVE_DISABLED
-
- }
-
- // Event Discovery
-
- /**
- * @param event
- * @return all windows that given event should be delivered to with current wirings and configuration
- */
- Collection<Window> getEventWindows(Event event);
-
- // Management
-
- /**
- * Defines a wiring for a given even QName between multiply source and destination windows
- *
- * @param sources
- * @param targets
- * @param eventQName
- * @throws IllegalCoordinationException
- */
- void setEventWiring(Set<Window> sources, Set<Window> targets, QName eventQName) throws IllegalCoordinationException;
-
- /**
- * Remove wiring
- *
- * @param eventWiringInfo
- * @throws IllegalCoordinationException
- */
- void removeEventWiring(EventWiringInfo eventWiringInfo) throws IllegalCoordinationException;
-
- /**
- * Defines a wiring between qnames at the page level. Event with given qname will be delivered
- * to all windows being destination of destination qnames. All qnames need to be compatible - have no or the same
- * payload - otherwise IllegalCoordinationException will be thrown.
- * This method overrites any previous wiring for this qname in the page. Empty destinations collection removes the
- * wiring.
- *
- * @param source
- * @param destinations
- * @param page
- * @throws IllegalCoordinationException
- */
- void setQNameEventWiring(QName source, Collection<QName> destinations, Page page) throws IllegalCoordinationException;
-
-
- /**
- * Sets implicit wiring strategy for a given page
- *
- * @param pageContainer
- * @param strategy
- * @throws IllegalCoordinationException
- */
- void setImplicitEventWiringStrategy(PageContainer pageContainer, ImplicitStrategy strategy) throws IllegalCoordinationException;
-
- /**
- * @param page
- * @return implicit wiring strategy for a given page
- */
- ImplicitStrategy getImplicitEventWiringStrategy(Page page);
-
- /**
- * @param page
- * @param source
- * @return a collection of qnames that are wired with a given gname in scope of given page
- * @throws IllegalCoordinationException
- */
- Collection<QName> getQNameEventWiring(Page page, QName source) throws IllegalCoordinationException;
-
-
- /**
- * @param eventQName
- * @return all wirings defined for a given qname
- */
- Collection<EventWiringInfo> getEventWirings(QName eventQName);
-
- /**
- * @param page
- * @return all wirings defined in the scope of a given page
- */
- Collection<EventWiringInfo> getEventWirings(Page page);
-
- /**
- * @param window
- * @return all wirings where given window is a source
- */
- Collection<EventWiringInfo> getEventSourceWirings(Window window);
-
- /**
- * @param window
- * @return all wirings where given window is a destination
- */
- Collection<EventWiringInfo> getEventDestinationWirings(Window window);
-
- /**
- * Defines shared parameter binding for a given collection of windows.
- *
- * @param qname
- * @param windows
- * @throws IllegalCoordinationException
- */
- void setParameterBinding(QName qname, Collection<Window> windows) throws IllegalCoordinationException;
-
- /**
- * Removes given parameter binding
- *
- * @param parameterBinding
- * @throws IllegalCoordinationException
- */
- void removeParameterBinding(ParameterBindingInfo parameterBinding) throws IllegalCoordinationException;
-
- /**
- * Defines page scoped alias for shared parameter. All parameters with a local part equal to given name will
- * share request value
- *
- * @param page
- * @param name
- */
- void setParameterAlias(Page page, String name);
-
- /**
- * Get a collection of aliases defined for a given page
- *
- * @param page
- * @return
- */
- Collection<String> getParameterAliases(Page page);
-
- /**
- * Remove alias
- *
- * @param page
- * @param name
- * @throws IllegalCoordinationException
- */
- void removeParameterAlias(Page page, String name) throws IllegalCoordinationException;
-
- /**
- * Set implicit strategy for a given page container
- *
- * @param pageContainer
- * @param implicitStrategy
- * @throws IllegalCoordinationException
- */
- void setImplicitParameterBindingStrategy(PageContainer pageContainer, ImplicitStrategy implicitStrategy) throws IllegalCoordinationException;
-
- /**
- * @param pageContainer
- * @return implicit strategy for a given page container
- */
- ImplicitStrategy getImplicitParameterBindingStrategy(PageContainer pageContainer);
-
- /**
- * @param parameterQName
- * @return parameter bindings for a given parameter qname
- */
- Collection<ParameterBindingInfo> getParameterBindings(QName parameterQName);
-
- /**
- * @param page
- * @return parameter bindings define in the scope of a given page
- */
- Collection<ParameterBindingInfo> getParameterBindings(Page page);
-
- /**
- * @param window
- * @return parameter bindings where given window is involved
- */
- Collection<ParameterBindingInfo> getParameterBindings(Window window);
-
-}
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java 2008-06-23 15:19:22 UTC (rev 11119)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java 2008-06-23 16:12:31 UTC (rev 11120)
@@ -22,17 +22,14 @@
package org.jboss.portal.core.model.portal.coordination;
-import org.jboss.portal.core.model.portal.Window;
import org.jboss.portal.core.model.portal.Page;
import org.jboss.portal.core.model.portal.PageContainer;
-import org.jboss.portal.core.controller.portlet.IllegalCoordinationException;
-import org.jboss.portal.core.model.portal.coordination.EventWiringInfo;
-import org.jboss.portal.core.model.portal.coordination.ParameterBindingInfo;
-import org.jboss.portal.portlet.controller.event.Event;
+import org.jboss.portal.core.model.portal.Window;
+import org.jboss.portal.portlet.controller.event.PortletWindowEvent;
import javax.xml.namespace.QName;
-import java.util.Set;
import java.util.Collection;
+import java.util.Set;
/**
* Interface defining operations for explicit event wiring management
@@ -72,7 +69,7 @@
* @param event
* @return all windows that given event should be delivered to with current wirings and configuration
*/
- Collection<Window> getEventWindows(Event event);
+ Collection<Window> getEventWindows(PortletWindowEvent event);
// Management
@@ -82,7 +79,7 @@
* @param sources
* @param targets
* @param eventQName
- * @throws org.jboss.portal.core.controller.portlet.IllegalCoordinationException
+ * @throws IllegalCoordinationException
*/
void setEventWiring(Set<Window> sources, Set<Window> targets, QName eventQName) throws IllegalCoordinationException;
Copied: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/IllegalCoordinationException.java (from rev 11119, branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/controller/portlet/IllegalCoordinationException.java)
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/IllegalCoordinationException.java (rev 0)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/IllegalCoordinationException.java 2008-06-23 16:12:31 UTC (rev 11120)
@@ -0,0 +1,31 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+package org.jboss.portal.core.model.portal.coordination;
+
+/**
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
+ * @version : 0.1 $
+ */
+public class IllegalCoordinationException extends Exception
+{
+}
17 years, 10 months
JBoss Portal SVN: r11119 - in modules/portlet/trunk/samples/src/main: artifacts/remotecontroller-portlet-war/css and 2 other directories.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2008-06-23 11:19:22 -0400 (Mon, 23 Jun 2008)
New Revision: 11119
Added:
modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/css/
modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/css/master.css
modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/
modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/icon-maximize.gif
modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/icon-minimize.gif
modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/icon-normal.gif
Modified:
modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/remotecontroller/RemoteControllerPortlet.java
Log:
- Copying the CSS and images in the remotecontroller webapp so that it works in PC and JBP
Added: modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/css/master.css
===================================================================
--- modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/css/master.css (rev 0)
+++ modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/css/master.css 2008-06-23 15:19:22 UTC (rev 11119)
@@ -0,0 +1,388 @@
+body,
+div.container {
+ font: normal 12px Lucida Sans, Trebuchet, tahoma, sans-serif;
+}
+
+.align-center {
+ text-align: center;
+}
+
+.align-left {
+ text-align: left;
+}
+
+.align-center-margin {
+ margin: 0 auto 0 auto;
+}
+
+.float-left {
+ float: left;
+}
+
+.float-right {
+ float: right;
+}
+
+.align-left {
+ text-align: left;
+}
+
+.align-right {
+ text-align: right;
+}
+
+.half-width {
+ width: 49%;
+}
+
+.quarter-width {
+ width: 24.9%;
+}
+
+.three-quarter-width {
+ width: 74.9%;
+}
+
+.full-width {
+ width: 100%;
+}
+
+.third-width {
+ width: 32.9%;
+}
+
+.two-third-width {
+ width: 65.5%;
+}
+
+.tenpx-top-bottom {
+ margin: 10px 0 10px 0;
+}
+
+.relative {
+ position: relative
+}
+
+.absolute {
+ position: absolute
+}
+
+p.white-padded {
+ color: #fff;
+ padding: 5px;
+}
+
+.clear {
+ clear: both;
+}
+
+img {
+ margin: 0;
+ padding: 0;
+ border: 0;
+}
+
+.zero {
+ margin: 0;
+ padding: 0;
+ border: 0;
+}
+
+body,
+ div,
+ form,
+ ul,
+ li {
+ margin: 0;
+ padding: 0;
+}
+
+ul {
+
+}
+
+ul li {
+ list-style-position:inside;
+}
+
+.hidden {
+ display: none;
+}
+
+/*--------------------------------Decoration*/
+
+h2 {
+ font-size: 1.9em;
+ color: #fff;
+ margin: 0;
+ padding: 0;
+}
+
+h2.title {
+ font-size: 1.9em;
+ color: #fff;
+ margin: 0;
+ padding: 0;
+}
+
+h3 {
+ font-size: 1.0em;
+ color: #fff;
+ margin: 0;
+ padding: 0;
+}
+
+a {
+ color: #990000;
+}
+
+p {
+ margin: 0;
+ padding: 0;
+}
+
+/*-------------------------------Container Decoration*/
+
+div#container>div.header {
+ height: 40px;
+ background-color: #000;
+}
+
+div#container div.header div.logo {
+ background-image: url( /simple-portal/images/logo-header.gif );
+ background-repeat: no-repeat;
+ background-position: top left;
+ height: 40px;
+}
+
+div#container div.header div.pc20 {
+ text-align: right;
+}
+
+div#container div.header div.secondary-nav {
+ font-size: 11px;
+ padding: 3px 5px 0 0;
+ text-align: right;
+}
+
+div#container div.header div.pc20 img {
+ margin: 5px 10px 0 0;
+}
+
+div#container div.nav {
+ background-image: url( /simple-portal/images/nav-bg.gif );
+ background-repeat: repeat-x;
+ background-position: top left;
+ border-top: 1px solid #878787;
+ border-bottom: 1px solid #383838;
+ height: 24px;
+}
+
+div#container div.nav ul {
+ height: 24px;
+ margin: 0 0 0 10px;
+}
+
+div#container div.nav ul li {
+ display: inline;
+ float: left;
+ text-align: center;
+ height: 24px; /*border: 1px solid #929292;*/
+}
+
+div#container div.nav ul li a,
+ div#container div.nav ul li a:hover {
+ display: block;
+ height: 16px;
+ padding: 5px 14px 4px 14px;
+ background-repeat: repeat-x;
+ background-position: top left;
+ text-decoration: none;
+ font: bold 11px;
+}
+
+div#container div.nav ul li a {
+ color: #fff; /*background-image: url( /simple-portal/images/inactive-button-bg.gif );*/
+}
+
+div#container div.nav ul li a:hover,
+ div#container div.nav ul li a.selected {
+ color: #fff;
+ background-image: url( /simple-portal/images/active-button2-bg.gif );
+}
+
+div#container div#content {
+ background-image: url( /simple-portal/images/portal-bg.gif );
+ background-repeat: repeat-x;
+ background-position: top left;
+ min-height: 600px;
+ padding: 10px;
+}
+
+/*-------------------------------Portlet Decoration*/
+
+div#container div#content div.portlet {
+ border: 1px solid #969696;
+ background-color: #e2e2e2;
+ padding: 2px;
+ float: left;
+ margin: 10px;
+ width: 95%;
+}
+
+div#container div#content div.portlet-frame {
+ background-color: #fff;
+ border: 1px solid #fff;
+}
+
+div#container div#content div.portlet div.header {
+ background-image: url( /simple-portal/images/portlet-titlebg.gif );
+ background-repeat: repeat-x;
+ background-position: top left;
+ height: 20px;
+}
+
+div#container div#content div.portlet div.header div.header-layer {
+ background-image: url( /simple-portal/images/portlet-title-rt-bg.gif );
+ background-repeat: no-repeat;
+ background-position: top right;
+ height: 20px;
+}
+
+div#container div#content div.portlet div.header div.header-layer div.title h2 {
+ font: bold 12px Lucida Sans, Trebuchet, tahoma, sans-serif;
+ color: #fff;
+ padding: 2px;
+}
+
+div#container div#content div.portlet div.header div.header-layer div.controls {
+ text-align: right;
+ padding: 3px 0 0 0;
+}
+
+div#container div#content div.portlet div.header div.header-layer div.controls span.mode-button {
+ text-align: right;
+ padding: 0 5px 0 0;
+}
+
+div#container div#content div.portlet div.header div.header-layer div.controls span.mode-button a {
+ color: #e1d77e;
+ font: normal 11px;
+ text-decoration: none;
+}
+
+/*----------------------------------Error portlet*/
+
+div.error-container {
+ padding: 5px;
+ background-color: #fff;
+}
+
+h3.error-header {
+ background-color: #cc1100;
+ color: #fff;
+ padding: 3px;
+}
+
+div.error-container ul {
+ list-style: none;
+ list-style-position: inside;
+}
+
+div.error-container ul li {
+ padding: 3px 0 3px 0;
+ border-bottom: 1px solid #777777;
+}
+
+div.error-container ul li span {
+ font-weight: bold;
+ color: #cc1100
+}
+
+div.exception code {
+ color: #33ff00;
+}
+
+/*-------------------------------------Remote Window*/
+
+div.remote-container {
+ padding: 8px 0 0 0;
+}
+
+div.remote-container ul {
+ list-style: none;
+ list-style-position: inside;
+ width: 90%;
+ margin: 0 auto 0 auto;
+}
+
+div.remote-container ul li {
+ padding: 3px 0 3px 0;
+ border-bottom: 1px solid #777777;
+}
+
+div.remote-container ul li a {
+ color: #332299
+}
+
+/*-------------------------------------Home page*/
+
+div#container div#content div.main-content {
+ padding: 5px;
+ width: 950px;
+ border-bottom: 1px solid #777777;
+}
+
+div#container div#content div.main-content p {
+ padding: 5px;
+}
+
+div#container div#content div.content-box {
+ background-image: url( /simple-portal/images/content-box-bg.gif );
+ background-repeat: repeat-x;
+ background-position: top right;
+ height: 200px ;
+ width: 300px;
+ margin: 0 13px 0 13px;
+}
+
+div#container div#content div.content-box div.box-header {
+ position: relative;
+ height: 28px;
+ width: 100%;
+}
+
+div#container div#content div.content-box div.box-header h3{
+ padding: 4px 0 0 10px;
+ font-size:1.2em;
+}
+
+
+div#container div#content div.content-box div.box-header img.left {
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+div#container div#content div.content-box div.box-header img.right {
+ position: absolute;
+ top: 0;
+ right: 0;
+}
+
+div#container div#content div.content-box div.box-content {
+ padding: 5px;
+}
+
+/*-------------------------------------Wiki page*/
+
+div#container div#content div.wiki-content {
+ padding: 5px;
+ border-bottom: 1px solid #777777;
+}
+
+div#container div#content div.wiki-content p {
+ padding: 5px;
+}
+
+/*-------------------------------------Debugger*/
Added: modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/icon-maximize.gif
===================================================================
(Binary files differ)
Property changes on: modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/icon-maximize.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/icon-minimize.gif
===================================================================
(Binary files differ)
Property changes on: modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/icon-minimize.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/icon-normal.gif
===================================================================
(Binary files differ)
Property changes on: modules/portlet/trunk/samples/src/main/artifacts/remotecontroller-portlet-war/images/icon-normal.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/remotecontroller/RemoteControllerPortlet.java
===================================================================
--- modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/remotecontroller/RemoteControllerPortlet.java 2008-06-23 15:17:08 UTC (rev 11118)
+++ modules/portlet/trunk/samples/src/main/java/org/jboss/portal/portlet/samples/remotecontroller/RemoteControllerPortlet.java 2008-06-23 15:19:22 UTC (rev 11119)
@@ -37,7 +37,7 @@
ResourceURL resource = renderResponse.createResourceURL();
printWriter.print(resource);
printWriter.print("')\">Open remote control!</a></p>");
- }
+}
@Override
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws PortletException, IOException
@@ -46,17 +46,17 @@
PrintWriter writer = resourceResponse.getWriter();
String namespace = resourceResponse.getNamespace();
writer.print("<html><head><script type='text/javascript'>function openLinkInParent(url){window.open(url,'"
- + namespace + "_parent');}</script>\n<link rel=\"stylesheet\" href='/simple-portal/css/master.css' type=\"text/css\"/></head><body>");
+ + namespace + "_parent');}</script>\n<link rel=\"stylesheet\" href='" + resourceRequest.getContextPath() + "/css/master.css' type=\"text/css\"/></head><body>");
PortletURL url = resourceResponse.createRenderURL();
url.setWindowState(WindowState.MINIMIZED);
writer.print("<div class=\"remote-container\"><ul><li><a href='#' onclick=\"" + createParentURL(url) + "\"><img\n" +
- " src=\"/simple-portal/images/icon-minimize.gif\" alt=\"\"/> minimize parent portlet</a></li>");
+ " src=\"" + resourceRequest.getContextPath() + "/images/icon-minimize.gif\" alt=\"\"/> minimize parent portlet</a></li>");
url.setWindowState(WindowState.MAXIMIZED);
writer.print("<li><a href='#' onclick=\"" + createParentURL(url) + "\"><img\n" +
- " src=\"/simple-portal/images/icon-maximize.gif\" alt=\"\"/> maximize parent portlet</a></li>");
+ " src=\"" + resourceRequest.getContextPath() + "/images/icon-maximize.gif\" alt=\"\"/> maximize parent portlet</a></li>");
url.setWindowState(WindowState.NORMAL);
writer.print("<li><a href='#' onclick=\"" + createParentURL(url) + "\"><img\n" +
- " src=\"/simple-portal/images/icon-normal.gif\" alt=\"\"/> make parent portlet normal</a></li></ul>");
+ " src=\"" + resourceRequest.getContextPath() + "/images/icon-normal.gif\" alt=\"\"/> make parent portlet normal</a></li></ul>");
writer.print("<br/><ul><li><b>'zipcode'</b> public render parameter value: " + resourceRequest.getParameter(ZIPCODE) + "<br/>");
writer.print("Set value of <b>'zipcode'</b> public render parameter to:</li>");
url.setParameter(ZIPCODE, "80201");
17 years, 10 months
JBoss Portal SVN: r11118 - branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination.
by portal-commits@lists.jboss.org
Author: bdaw
Date: 2008-06-23 11:17:08 -0400 (Mon, 23 Jun 2008)
New Revision: 11118
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java
Log:
qname is the name...
Modified: branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java 2008-06-23 15:15:14 UTC (rev 11117)
+++ branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/model/portal/coordination/CoordinationManager.java 2008-06-23 15:17:08 UTC (rev 11118)
@@ -106,7 +106,7 @@
* @param page
* @throws IllegalCoordinationException
*/
- void setQNameEventWiring(QName source, Collection<QName> destinations, Page page) throws IllegalCoordinationException;
+ void setNameEventWiring(QName source, Collection<QName> destinations, Page page) throws IllegalCoordinationException;
/**
@@ -130,7 +130,7 @@
* @return a collection of qnames that are wired with a given gname in scope of given page
* @throws IllegalCoordinationException
*/
- Collection<QName> getQNameEventWiring(Page page, QName source) throws IllegalCoordinationException;
+ Collection<QName> getNameEventWiring(Page page, QName source) throws IllegalCoordinationException;
/**
17 years, 10 months