You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by X Gylee <x....@gmail.com> on 2008/01/30 03:54:05 UTC

Curly braces in ${bsh; ...}

I tried to use a Java method in a form widget:

<display description="${bsh: String.format(&quot;%,d&quot;, new Integer[]
{12345});}" />

However, OFBiz treated the first closing curly, which is the end of an array
initializer, as the end of the whole ${bsh: ... }, and this created an
incorrect output.
I have tried to replace the array curlies with &#x7b; and &#x7d;, but they
had no effects.
Is there a way to escape inner curlies?

I am using OFBiz from trunk rev 612332 (Jan 16, 2008).

Re: Curly braces in ${bsh; ...}

Posted by Dimitri Unruh <di...@lynx.de>.
I guess you should try this one:

&#123; for {
and
&#125; for }


Viele Grüße
Best Regards




Dimitri Unruh
Consultant AEW
Agrenon GmbH
Johanniskirchplatz 6
33615 Bielefeld
Deutschland
Fon: +49 521 5247-0
Fax: +49 521 5247-250
Mobil: +49 160 90 57 55 13


Company and Management Headquarters:
Agrenon GmbH, Johanniskirchplatz 6, 33615 Bielefeld, Deutschland, Fon: +49 521 5247-0, Fax: +49 521 5247-250, www.agrenon.com

Court Registration: Amtsgericht Bielefeld HRB 36795
Chief Executive Officer: Dirk Osterkamp

----------------------------------------------------------------------------------------------------
This e-mail may contain trade secrets or privileged, undisclosed, or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying, or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation. 
----------------------------------------------------------------------------------------------------

Besuchen Sie uns!
11. SAP-Kongress fuer
Handel & Konsumgueter
13. - 14. Februar 2008
Congress Center Messe Leipzig