You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Adrian Crum <ad...@hlmksw.com> on 2010/02/04 20:57:06 UTC

Re: JUNK->Re: svn commit: r906526 - /ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml

I believe the problem is the label is being evaluated twice. The 
solution would be to escape it twice. I tried escaping the label within 
the form widget, but that generated a different error. I don't have time 
right now to look into it further.

-Adrian

Jacques Le Roux wrote:
> Oops, Focused on another point I did not see any differences between 
> ExampleDateField9Title and ExampleDateField9Tooltip (I assumed 
> ExampleDateField9Title was used for both, obviously I need some rest)
> Hopefully Bilgin will fix this rightly soon, else I wil have a look... 
> Anyway as I said it's not a big deal: only a tooltip in example...
> 
> Thanks for your appreciated help Adrian, and sorry for disturbance
> 
> Jacques
> 
> From: "Adrian Crum" <ad...@hlmksw.com>
>> There is no UEL interpretation error.
>>
>> For some reason the labels were changed in rev 882948. I don't know 
>> what "raw string literal" means - but the change that was made in that 
>> commit is wrong.
>>
>> To escape an expression, you precede the dollar sign with a backslash:
>>
>> \${escapedExpression}
>>
>> -Adrian
>>
>>
>> Adrian Crum wrote:
>>> Jacques,
>>>
>>> I'm looking into this. It seems expression escaping is broken.
>>>
>>> -Adrian
>>>
>>> jleroux@apache.org wrote:
>>>> Author: jleroux
>>>> Date: Thu Feb  4 15:33:27 2010
>>>> New Revision: 906526
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=906526&view=rev
>>>> Log:
>>>> Temporary workaround to avoid a bug in FormWidgetExampleForms.xml.
>>>> Looks like it's related to an UEL interpretation error but it's deep 
>>>> rooted and I did not get enough time to debug now. Anyway not a big 
>>>> deal, and I will get back to it soon..
>>>>
>>>> Modified:
>>>>     
>>>> ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
>>>>
>>>> Modified: 
>>>> ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
>>>> URL: 
>>>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml?rev=906526&r1=906525&r2=906526&view=diff 
>>>>
>>>> ============================================================================== 
>>>>
>>>> --- 
>>>> ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml 
>>>> (original)
>>>> +++ 
>>>> ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml 
>>>> Thu Feb  4 15:33:27 2010
>>>> @@ -37,8 +37,8 @@
>>>>          <!-- ***   field9  *** -->
>>>>          <!-- ***************** -->
>>>>          <field name="field9"
>>>> -               title="${uiLabelMap.ExampleDateField9Title}"
>>>> -               tooltip="${uiLabelMap.ExampleDateField9Tooltip}">
>>>> +            title="${uiLabelMap.ExampleDateField9Title}" 
>>>> tooltip="${uiLabelMap.ExampleDateField9Tooltip}">
>>>> +            <!--tooltip="${uiLabelMap.ExampleDateField9Tooltip}"-->
>>>>              <date-time 
>>>> default-value="${groovy:org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/> 
>>>>
>>>>          </field>
>>>>          <!-- ***************** -->
>>>>
>>>>
>>>>
>>>
>>
> 
> 

Re: JUNK->Re: svn commit: r906526 - /ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml

Posted by Jacques Le Roux <ja...@free.fr>.
OK, thanks Adrian,

It seems we are all focused on more important tasks right now... We will see...

Jacques

From: "Adrian Crum" <ad...@hlmksw.com>
>I believe the problem is the label is being evaluated twice. The solution would be to escape it twice. I tried escaping the label
>within the form widget, but that generated a different error. I don't have time right now to look into it further.
>
> -Adrian
>
> Jacques Le Roux wrote:
>> Oops, Focused on another point I did not see any differences between ExampleDateField9Title and ExampleDateField9Tooltip (I
>> assumed ExampleDateField9Title was used for both, obviously I need some rest)
>> Hopefully Bilgin will fix this rightly soon, else I wil have a look... Anyway as I said it's not a big deal: only a tooltip in
>> example...
>>
>> Thanks for your appreciated help Adrian, and sorry for disturbance
>>
>> Jacques
>>
>> From: "Adrian Crum" <ad...@hlmksw.com>
>>> There is no UEL interpretation error.
>>>
>>> For some reason the labels were changed in rev 882948. I don't know what "raw string literal" means - but the change that was
>>> made in that commit is wrong.
>>>
>>> To escape an expression, you precede the dollar sign with a backslash:
>>>
>>> \${escapedExpression}
>>>
>>> -Adrian
>>>
>>>
>>> Adrian Crum wrote:
>>>> Jacques,
>>>>
>>>> I'm looking into this. It seems expression escaping is broken.
>>>>
>>>> -Adrian
>>>>
>>>> jleroux@apache.org wrote:
>>>>> Author: jleroux
>>>>> Date: Thu Feb  4 15:33:27 2010
>>>>> New Revision: 906526
>>>>>
>>>>> URL: http://svn.apache.org/viewvc?rev=906526&view=rev
>>>>> Log:
>>>>> Temporary workaround to avoid a bug in FormWidgetExampleForms.xml.
>>>>> Looks like it's related to an UEL interpretation error but it's deep rooted and I did not get enough time to debug now. Anyway
>>>>> not a big deal, and I will get back to it soon..
>>>>>
>>>>> Modified:
>>>>>     ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
>>>>>
>>>>> Modified: ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
>>>>> URL:
>>>>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml?rev=906526&r1=906525&r2=906526&view=diff
>>>>> ==============================================================================
>>>>> --- 
>>>>> ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml (original)
>>>>> +++ ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml Thu Feb  4 15:33:27 2010
>>>>> @@ -37,8 +37,8 @@
>>>>>          <!-- ***   field9  *** -->
>>>>>          <!-- ***************** -->
>>>>>          <field name="field9"
>>>>> -               title="${uiLabelMap.ExampleDateField9Title}"
>>>>> -               tooltip="${uiLabelMap.ExampleDateField9Tooltip}">
>>>>> +            title="${uiLabelMap.ExampleDateField9Title}" tooltip="${uiLabelMap.ExampleDateField9Tooltip}">
>>>>> +            <!--tooltip="${uiLabelMap.ExampleDateField9Tooltip}"-->
>>>>>              <date-time default-value="${groovy:org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
>>>>>          </field>
>>>>>          <!-- ***************** -->
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>