taylor 2004/04/07 16:11:24
Modified: portal/src/java/org/apache/jetspeed/container/url/impl
SessionPortalURL.java AbstractPortalURL.java
Log:
Render parameters are stateful and should be a part of the URL
PR:
Obtained from:
Submitted by:
Reviewed by:
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.4 +2 -2
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/url/impl/SessionPortalURL.java
Index: SessionPortalURL.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/url/impl/SessionPortalURL.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SessionPortalURL.java 7 Apr 2004 03:55:00 -0000 1.3
+++ SessionPortalURL.java 7 Apr 2004 23:11:24 -0000 1.4
@@ -50,7 +50,7 @@
public boolean isStateFullParameter(String param)
{
- return false;
+ return isRenderParameter(param);
}
}
1.4 +11 -1
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/url/impl/AbstractPortalURL.java
Index: AbstractPortalURL.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/url/impl/AbstractPortalURL.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AbstractPortalURL.java 7 Apr 2004 03:55:00 -0000 1.3
+++ AbstractPortalURL.java 7 Apr 2004 23:11:24 -0000 1.4
@@ -119,6 +119,16 @@
return
token.startsWith(nsc.getNavigationKey(NavigationalStateComponent.PREFIX));
}
+ public boolean isRenderParameter(String token)
+ {
+ String prefix = nsc.getNavigationKey(NavigationalStateComponent.PREFIX);
+ if ( token != null && (token.startsWith(prefix +
nsc.getNavigationKey(NavigationalStateComponent.RENDER_PARAM))))
+ {
+ return true;
+ }
+ return false;
+ }
+
public String getRenderParamKey(PortletWindow window)
{
return nsc.getNavigationKey(NavigationalStateComponent.RENDER_PARAM) + "_"
+ window.getId().toString();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]