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 |
+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" <[hidden email]> > 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 > |
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" <[hidden email]> >> 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/ |
Free forum by Nabble | Edit this page |