You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Nicolas <ma...@librenberry.net> on 2009/08/25 16:50:50 UTC

Render menu problem on screenlet header

Salut,

I convert some screen to screenlet system and during the test to pass 
menu on the screelet begin I lose menu link.

My menu-item is :
---------------
          <link 
target="javascript:ajaxUpdateArea('topArea','CompanyVarious',{'CompanyId':'${parameters.CompanyId}','linkNameTop':'CompanyVarious'})" 
url-mode="plain"/>
---------------

when is convert by the HtmlRenderer :
---------

  <li><a href="javascript:ajaxUpdateArea(" top-area="" ,{="" companyid="" ,="" linknametop="" :="" companycoordonates="" })="">Coordonées</a></li>

---------


The problem came from MacroScreenRenderer.java at line  676
-------------
  sr.append(menuString.replaceAll("\"", "'"));//FIXME change the " to ' 
for fix the macro invoke
-------------
All " as replace by ' but ' is already use in the javascript call. I 
propose to convert " in other char as | and in ftl macro do a revert 
replace ${menuString?replace("|", "\"")}

Any suggestion ? If no I create a Jira to correct it.

Cheers,
Nicolas

Re: Render menu problem on screenlet header

Posted by Malin Nicolas <ma...@librenberry.net>.
Jacques Le Roux a écrit :
> +1     But to cover all cases I'd  prefer § or µ or even better ¤, I 
> never found the last one used in any string :o)
:) Ok jacques, I create jira today and use the ¤ char

Nicolas
>
> Jacques
>
> From: "Nicolas" <ma...@librenberry.net>
>> Salut,
>>
>> I convert some screen to screenlet system and during the test to pass 
>> menu on the screelet begin I lose menu link.
>>
>> My menu-item is :
>> ---------------
>>          <link
>> target="javascript:ajaxUpdateArea('topArea','CompanyVarious',{'CompanyId':'${parameters.CompanyId}','linkNameTop':'CompanyVarious'})" 
>>
>> url-mode="plain"/>
>> ---------------
>>
>> when is convert by the HtmlRenderer :
>> ---------
>>
>>  <li><a href="javascript:ajaxUpdateArea(" top-area="" ,{="" 
>> companyid="" ,="" linknametop="" :=""
>> companycoordonates="" })="">Coordonées</a></li>
>>
>> ---------
>>
>>
>> The problem came from MacroScreenRenderer.java at line  676
>> -------------
>>  sr.append(menuString.replaceAll("\"", "'"));//FIXME change the " to 
>> ' for fix the macro invoke
>> -------------
>> All " as replace by ' but ' is already use in the javascript call. I 
>> propose to convert " in other char as | and in ftl macro do a
>> revert replace ${menuString?replace("|", "\"")}
>>
>> Any suggestion ? If no I create a Jira to correct it.
>>
>> Cheers,
>> Nicolas
>>
>
>


-- 
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/


Re: Render menu problem on screenlet header

Posted by Jacques Le Roux <ja...@free.fr>.
+1     But to cover all cases I'd  prefer § or µ or even better ¤, I never found the last one used in any string :o)

Jacques

From: "Nicolas" <ma...@librenberry.net>
> Salut,
>
> I convert some screen to screenlet system and during the test to pass menu on the screelet begin I lose menu link.
>
> My menu-item is :
> ---------------
>          <link
> target="javascript:ajaxUpdateArea('topArea','CompanyVarious',{'CompanyId':'${parameters.CompanyId}','linkNameTop':'CompanyVarious'})"
> url-mode="plain"/>
> ---------------
>
> when is convert by the HtmlRenderer :
> ---------
>
>  <li><a href="javascript:ajaxUpdateArea(" top-area="" ,{="" companyid="" ,="" linknametop="" :=""
> companycoordonates="" })="">Coordonées</a></li>
>
> ---------
>
>
> The problem came from MacroScreenRenderer.java at line  676
> -------------
>  sr.append(menuString.replaceAll("\"", "'"));//FIXME change the " to ' for fix the macro invoke
> -------------
> All " as replace by ' but ' is already use in the javascript call. I propose to convert " in other char as | and in ftl macro do a
> revert replace ${menuString?replace("|", "\"")}
>
> Any suggestion ? If no I create a Jira to correct it.
>
> Cheers,
> Nicolas
>