Index: EndCustomize.java =================================================================== RCS file: /home/cvspublic/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/controls/EndCustomize.java,v retrieving revision 1.1 diff -u -r1.1 EndCustomize.java --- EndCustomize.java 8 Nov 2002 23:13:44 -0000 1.1 +++ EndCustomize.java 4 Mar 2003 03:05:21 -0000 @@ -56,6 +56,7 @@ // Turbine stuff import org.apache.turbine.modules.Action; +import org.apache.turbine.util.DynamicURI; import org.apache.turbine.util.RunData; import org.apache.turbine.util.Log; @@ -79,29 +80,40 @@ */ public void doPerform( RunData data ) throws Exception { - JetspeedLink jsLink = null; ((JetspeedRunData) data).cleanupFromCustomization(); // bring logged on user to homepage via HTTP redirect + try { - jsLink = JetspeedLinkFactory.getInstance(data); + JetspeedLink jsLink = JetspeedLinkFactory.getInstance(data); + DynamicURI duri = jsLink.getLink(JetspeedLink.CURRENT,null,null,JetspeedLink.CURRENT,null); String mtype = data.getParameters().getString("mtype"); if (mtype != null) { jsLink.setMediaType(mtype); - jsLink.addQueryData("mtype", mtype); + duri = jsLink.addQueryData("mtype", mtype); + duri = duri.addPathInfo("media-type", mtype); + String language = data.getParameters().getString("language"); + if(language != null) + { + duri = duri.addQueryData("language",language); + String country = data.getParameters().getString("country"); + if(country != null) + { + duri = duri.addQueryData("country", country); + } + } } - + + data.setRedirectURI(duri.toString()); + JetspeedLinkFactory.putInstance(jsLink); + jsLink = null; } catch (Exception e) { Log.error(e); - } - - data.setRedirectURI(jsLink.toString()); - JetspeedLinkFactory.putInstance(jsLink); - jsLink = null; + } } } Index: GlobalMacros.vm =================================================================== RCS file: /home/cvspublic/jakarta-jetspeed/webapp/WEB-INF/templates/vm/GlobalMacros.vm,v retrieving revision 1.8 diff -u -r1.8 GlobalMacros.vm --- GlobalMacros.vm 28 Jan 2003 06:30:20 -0000 1.8 +++ GlobalMacros.vm 4 Mar 2003 03:06:23 -0000 @@ -123,6 +123,8 @@ #end +#macro(psmlLink $baseLink)#set ($theLink = $baseLink)#set ($mtype = $!data.Parameters.getString("mtype"))#set ($language = $!data.Parameters.getString("language"))#set ($country = $!data.Parameters.getString("country"))#if($!mtype)#set ($theLink = $theLink.addQueryData("mtype", $mtype))#if($!language)#set ($theLink = $theLink.addQueryData("language", $language))#if($!country)#set ($theLink = $theLink.addQueryData("country", $country))#end#end#end$theLink#end + #* ------------------------------------------------------------------ # # Macros that are used for portal page construction. Index: customizer-portletset-layout.vm =================================================================== RCS file: /home/cvspublic/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/customizer-portletset-layout.vm,v retrieving revision 1.12 diff -u -r1.12 customizer-portletset-layout.vm --- customizer-portletset-layout.vm 15 Nov 2002 17:27:18 -0000 1.12 +++ customizer-portletset-layout.vm 4 Mar 2003 03:10:23 -0000 @@ -9,12 +9,7 @@ $l10n.CUSTOMIZER_LAYOUT : - #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) -
- #else - - #end + #if ($action) #end @@ -50,12 +45,7 @@ $l10n.CUSTOMIZER_DECORATION : - #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($action) #end #end Index: card-customize.vm =================================================================== RCS file: /home/cvspublic/jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers/html/card-customize.vm,v retrieving revision 1.12 diff -u -r1.12 card-customize.vm --- card-customize.vm 2 Sep 2002 18:33:08 -0000 1.12 +++ card-customize.vm 4 Mar 2003 03:13:41 -0000 @@ -70,12 +70,7 @@ #end - #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($!action) #end @@ -104,12 +99,7 @@
- #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($!action) #end Index: column-customize.vm =================================================================== RCS file: /home/cvspublic/jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers/html/column-customize.vm,v retrieving revision 1.10 diff -u -r1.10 column-customize.vm --- column-customize.vm 2 Sep 2002 18:33:08 -0000 1.10 +++ column-customize.vm 4 Mar 2003 03:13:51 -0000 @@ -71,12 +71,7 @@ #end
- #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($!action) #end @@ -105,12 +100,7 @@
- #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($!action) #end Index: flow-customize.vm =================================================================== RCS file: /home/cvspublic/jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers/html/flow-customize.vm,v retrieving revision 1.4 diff -u -r1.4 flow-customize.vm --- flow-customize.vm 23 Jul 2002 00:03:56 -0000 1.4 +++ flow-customize.vm 4 Mar 2003 03:14:02 -0000 @@ -70,12 +70,7 @@ #end
- #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($!action) #end @@ -104,12 +99,7 @@
- #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($!action) #end Index: multicolumn-customize.vm =================================================================== RCS file: /home/cvspublic/jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers/html/multicolumn-customize.vm,v retrieving revision 1.15 diff -u -r1.15 multicolumn-customize.vm --- multicolumn-customize.vm 15 Nov 2002 17:27:18 -0000 1.15 +++ multicolumn-customize.vm 4 Mar 2003 03:14:11 -0000 @@ -21,12 +21,7 @@ #foreach ( $portlet in $column )
- #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($action) #end @@ -125,11 +120,7 @@ ## Including table to match alignment.
- #if ($!mtype) - - #else - - #end + #if ($action) #end @@ -164,12 +155,7 @@

-#set ($mtype = $!data.Parameters.getString("mtype")) -#if ($!mtype) - -#else - -#end + #if ($action) #end
Index: row-customize.vm =================================================================== RCS file: /home/cvspublic/jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers/html/row-customize.vm,v retrieving revision 1.9 diff -u -r1.9 row-customize.vm --- row-customize.vm 2 Sep 2002 18:33:08 -0000 1.9 +++ row-customize.vm 4 Mar 2003 03:14:21 -0000 @@ -71,12 +71,7 @@ #end
- #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($!action) #end @@ -105,12 +100,7 @@
- #set ($mtype = $!data.Parameters.getString("mtype")) - #if ($!mtype) - - #else - - #end + #if ($!action) #end