portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Ford" <caius1...@hotmail.com>
Subject Re: DO NOT REPLY [Bug 16627] New: - psml browser/customizer error
Date Wed, 05 Feb 2003 04:21:25 GMT
Here is an potential fix for this bug.  It basically looks for the language
parameter in url and then adds that to the link.  Should this be done by the
jslink instead?  If the jslink doesn't do this, then you would end having to
go through and fix the customizer wherever it is missing the language
information.  Also, I think that the country parameter would have to be
dealt with as well.

Jeremy Ford

Index: card-customize.vm
===================================================================
RCS file:
/home/cvspublic/jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers/htm
l/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 5 Feb 2003 04:18:37 -0000
@@ -71,10 +71,11 @@
     </td>
     <td valign="top" align="center">
       #set ($mtype = $!data.Parameters.getString("mtype"))
+      #set ($language = $!data.Parameters.getString("language", "-1"))
       #if ($!mtype)
-        <form action="$jslink.Template.addQueryData('mtype', $mtype)"
method="post">
+        <form action="$jslink.Template.addQueryData('mtype',
$mtype).addQueryData("language",$language)" method="post">
       #else
-        <form action="$jslink.Template" method="post">
+        <form action="$jslink.Template.addQueryData("language",$language)"
method="post">
       #end
 #if ($!action) <input type="hidden" name="$jslink.ActionKey"
value="$action"> #end
         <input type="hidden" name="position" value="$position" />


----- Original Message -----
From: <bugzilla@apache.org>
To: <jetspeed-dev@jakarta.apache.org>
Sent: Thursday, January 30, 2003 9:51 PM
Subject: DO NOT REPLY [Bug 16627] New: - psml browser/customizer error


> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16627>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16627
>
> psml browser/customizer error
>
>            Summary: psml browser/customizer error
>            Product: Jetspeed
>            Version: 1.4b4-dev /CVS
>           Platform: PC
>         OS/Version: Windows NT/2K
>             Status: NEW
>           Severity: Normal
>           Priority: Other
>          Component: Customizer
>         AssignedTo: jetspeed-dev@jakarta.apache.org
>         ReportedBy: caius1440@hotmail.com
>
>
> Overview Description: When using the psml browser to edit the anonymous
user's
> default psml, the customizer fails to edit the psml.
>
> Steps to Reproduce:
> 1) Log in as admin
> 2) Go to admin tab
> 3) Click on PSML browser
> 4) Click on default.psml under user/anon/html
> 5) Choose to delete the Dynamic pane
>
> Actual Result: A page that displays
> $jetspeed.getCustomizer($data.Customized).getContent($data)
>
> Expected Results: anonymous user's psml with Dynamic pane deleted
>
> Build Date: 1/29/03
> Platform: Windows 2000
> Tomcat Version: 4.1.18
> JDK: 1.4.0_01
>
> Comments:
> I believe that the problem lies in the fact that the language=-1 is not
set in
> the form action that is submitted when you click on the delete icon.  If
you
> instead use the following url
>
> http://localhost:8080/jetspeed/portal/media-
> type/html/user/anon/page/default.psml/template/Customize?
>
mtype=html&position=2&action=controllers.PanedControllerAction&eventSubmit_d
oDel
> ete=1&language=-1
>
> the customizer will behave correctly.  I'm not sure of where to put the
fix
> (velocity or jslink), but I think that it entails putting the language
value
> into the link.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message