Re: Frames ..

2005-03-31 Thread Simon Christian
Hi Tanveer, This is strictly a Turbine and/or HTML question, however the problem seems a fairly fundamental one: your frameset is not being recognized because the tags appears within the body section of the page. The final source for your page should instead look something like this:- html

RE: Frames ..

2005-03-31 Thread Tanveer Dhillon
Thanks It works after changing the layout. It was the problem of the body tag only. Thanks again!!! Tanveer -Original Message- From: Simon Christian [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 2:47 PM To: Velocity Users List Subject: Re: Frames .. Hi Tanveer, This is

need implement like AOP

2005-03-31 Thread Perfect Tao
Hi Velocity fans I have a question of Velocity I need a function: It is exec a especial method before or after exec every getXXX() when merge template Like AOP function. How implement it?. Or tell me idea. I wrote code by your idea. Thank you Best Regards Perfect Tao Email:

Re: need implement like AOP

2005-03-31 Thread Simon Christian
Hi Tao, I don't think there's an easy way to do this, though there are a few avenues to explore: 1. Look at the EventCartridge EventHandlers, specifically implementing o.a.v.app.event.ReferenceInsertionEventHandler would allow you to do *something* just before the value is put into the

Velocity - Double Rendering

2005-03-31 Thread Krishnan T
Hi I am trying to render a Velocity page using double rendering Technique(Velocity generates Velocity) I created a small macro #macro (sample $macroname $name) #$macroname ('$name') #end which takes two parameter $nameType and $name. If I pass hello and world as parameters

help me regarding macro

2005-03-31 Thread Uday Kumar
Hi, Pls help me out while invoking macro file from TurbineResources.properties file Regards, uday -Original Message- From: Simon Christian [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 5:25 PM To: Velocity Users List Subject: Re: need implement like AOP Hi Tao, I don't

RE: need implement like AOP

2005-03-31 Thread Uday Kumar
HI, Help me regarding macros Actually i could not not able to fetch the values which are placed in the context. html body #macro (writestudents $studentlist) #set ($rowcount = 1) #foreach($student in $studentlist) #if ($rowcount % 2 == 0) #set ($bgcolor=#f) #else #set

Re: macro help (was need implement like AOP)

2005-03-31 Thread Simon Christian
How are you calling the macro? Is the Student class public? Are there publicly accessible methods getName() and getConduct() on the Student class method? (similarly a generic get(String xxx) would do) - s Uday Kumar wrote: HI, Help me regarding macros Actually i could not not able to fetch the

RE: macro help (was need implement like AOP)

2005-03-31 Thread Uday Kumar
Hi, It is working when i place the code like this in VelocityScreen Class context.put (mystudent, new Student(uday,satisfactory)); but when i keep an Collection object i am not getting .. help me Regards, uday -Original Message- From: Simon Christian [mailto:[EMAIL PROTECTED]

macro help (was need implement like AOP)

2005-03-31 Thread Uday Kumar
Hi, Ok collection object is working , i need to use an Hash Map. Can any one of u help me ... Regards, uday -Original Message- From: Simon Christian [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 8:02 PM To: Velocity Users List Subject: Re: macro help (was need implement

Re: templs in XML: how to hande input/@checked=checked

2005-03-31 Thread Bob Hutchison
On Mar 29, 2005, at 1:13 PM, Robert Koberg wrote: #if ($isChecked) input ... checked=checked/ #else input .../ #end Since I need well-formed markup I cannot do: input ... #if($isChecked)checked=checked#end/ What about something like: input ... #if($isChecked) checked=checked #end / We

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: need implement like AOP

2005-03-31 Thread Perfect Tao
Hi Christian Thank you very much , I will compare blue print your give me . Where is o.a.v.util.introspection.UberspectImpl ? I think the next version Velocity maybe enhance the inject function Now AOP is very fashionable. :@) Best Regards Perfect Tao Email: [EMAIL PROTECTED] Yahoo

RE: need implement like AOP

2005-03-31 Thread Perfect Tao
Hi Christian Thank you very much , I will compare blue print your give me . Where is o.a.v.util.introspection.UberspectImpl ? I think the next version Velocity maybe enhance the inject function Now AOP is very fashionable. :@) Best Regards Perfect Tao Email: [EMAIL PROTECTED] Yahoo

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

RE: need implement like AOP

2005-03-31 Thread Perfect Tao
Hi Sorry o.a.v.util.introspectio = org.apache.velocity.util.introspection already provide the so strong function. I will research the package and extend it adapt for for my request. Thank you Best Regards Perfect Tao Email: [EMAIL PROTECTED] Yahoo Messeger ID: perfect_tao Skype ID