[Building Sakai] h:outputLink encoding problem

Mallika M Thoppay mallika at etudes.org
Wed Apr 1 13:32:35 PDT 2009


We found that this approach fixes an issue in Melete as well. The fix will
be available in our upcoming release, due in the next 4 weeks or so.
 
Regards,
Mallika
 

Mallika M Thoppay
Learning Systems Developer
Etudes Inc 

 

  _____  

From: sakai-dev-bounces at collab.sakaiproject.org
[mailto:sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of Yan-hong Lin
Sent: Tuesday, March 31, 2009 4:18 AM
To: DAVID ROLDAN MARTINEZ
Cc: sakai-dev at collab.sakaiproject.org
Subject: Re: [Building Sakai] h:outputLink encoding problem


Hi David,
 
Thanks for your help,
I think it works.
 
But there are too many source need to fix.
Include built-in tools and additional tools(like Melete).
And fiexed code will be replaced by new version while system upgration.
I give up after fix 3 source files.
 
Hope someone help me to find the JSF h:outputLink implementation.
I want to try hack source in this library.
 
Thanks again.
 
    Yan-hong Lin

2009/3/31 DAVID ROLDAN MARTINEZ <darolmar at upvnet.upv.es>



        Hi Yan-hong Lin,

        I'm not sure if this is quite standard but we use it in production
and works fine:

     <h:outputText escape="false" value="<a target='new_window' href='" />
     <h:outputText value="#{attach.location}" />
     <h:outputText escape="false" value="'>#{attach.filename}</a>" />

        Replace attach.location by the URL you want to link and
attach.filename by the link text.

        Hope this helps.

        David
________________________________________
De: sakai-dev-bounces at collab.sakaiproject.org
[sakai-dev-bounces at collab.sakaiproject.org] En nombre de Yan-hong Lin
[lyhcode at gmail.com]
Enviado el: martes, 31 de marzo de 2009 9:13
Para: sakai-dev at collab.sakaiproject.org
Asunto: [Building Sakai] h:outputLink encoding problem


Hello,

I found many Sakai tools using JSF tag "h:outputLink" to display <a>
hyperlinks.

But if URL contains non-ascii characters, the output is incorrect.

e.g. Have a uploaded file in Syllabus attachments named "™n°¸Ãû·Q.doc".
     The output is a bad link, browser display file not found error.

I try to fix code in each Sakai tool programs, but there are too many.

Is there a quick way to solve this problem?

Link replace some setting or patch JSF source.

Thanks a lot.

    Yan-hong Lin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090401/0df6470b/attachment.html 


More information about the sakai-dev mailing list