RE: help - text within { } is not rendered by the engine

2005-04-01 Thread e v a n l e o n a r d
Hi Ricardo, You are using the curly braces incorrectly. A normal velocity reference looks like this: $reference You can optionally wrap the name in braces like this: ${reference} If you want to use the silent mode place the ! After the $, like this: $!{referece} Velocity won't know

help - text within { } is not rendered by the engine

2005-03-31 Thread Ricardo
Hi,I decided to post this question one more time in case this time someone has an answer to this problem. I am using velocity 1.4. I am having problems when rendering text that is enclosed within { }. Here's my velocity template:Hello $name! Welcome to

Re: help - text within { } is not rendered by the engine

2005-03-31 Thread Barbara Baughman
I can replicate this behavior, and it looks like a bug. If you have a $ followed by letters (something in the context or not in the context), followed by a {, whatever follows the { is removed until it gets to whitespace. So $c1{something} - $c1{ $c1{something - $c1{ $c1{something} More

Re: help - text within { } is not rendered by the engine

2005-03-31 Thread Dimitrios Kolovos
You can always use the formal way: ${c1}{something} to make it work. Dimitrios - Original Message - From: Barbara Baughman [EMAIL PROTECTED] To: Velocity Users List velocity-user@jakarta.apache.org; [EMAIL PROTECTED] Sent: Friday, April 01, 2005 1:12 AM Subject: Re: help - text within {

Re: help - text within { } is not rendered by the engine

2005-03-31 Thread Barbara Baughman
But if $c1 is not in the context, you cannot get the following result using Velocity no matter the Velocity code. $c1{something} Using your idea: ${c1}{something} - ${c1}{something} Barbara Baughman X2157 On Fri, 1 Apr 2005, Dimitrios Kolovos wrote: You can always use the formal way:

Re: help - text within { } is not rendered by the engine

2005-03-31 Thread Dimitrios Kolovos
The following expression will do the trick: $c1## {Something} Sorry for my previous answer. Next time I ll spend more time reading the question :) Dimitrios - Original Message - From: Barbara Baughman [EMAIL PROTECTED] To: Velocity Users List velocity-user@jakarta.apache.org Sent:

Re: help - text within { } is not rendered by the engine

2005-03-31 Thread Will Glass-Husain
Is that the same as this? http://issues.apache.org/bugzilla/show_bug.cgi?id=28528 WILL - Original Message - From: Barbara Baughman [EMAIL PROTECTED] To: Velocity Users List velocity-user@jakarta.apache.org; [EMAIL PROTECTED] Sent: Thursday, March 31, 2005 4:12 PM Subject: Re: help - text

Re: help - text within { } is not rendered by the engine

2005-03-31 Thread Nathan Bubna
perhaps as a workaround, try #set( $D = '$' ) ${D}c1{whatever} disclaimeri didn't test it myself/disclaimer On Mar 31, 2005 5:19 PM, Will Glass-Husain [EMAIL PROTECTED] wrote: Is that the same as this? http://issues.apache.org/bugzilla/show_bug.cgi?id=28528 WILL - Original