Re: T5: Inserting a component into a message format

2008-02-01 Thread Christian Gorbach
another solution: http://wiki.apache.org/tapestry/Tapestry5HowToAddMessageFormatBindingPrefix might help ... c)hri rbolkey wrote: > > Hi, > > Ok. This one has me stumped as far as a good way to implement. I want to > place a form field inline into a localized sentence. e.g. "I like [text >

Re: T5: Inserting a component into a message format

2008-02-01 Thread Howard Lewis Ship
Actually, ${message:part1}${message:part2} This way you don't need any extra Java code. The ${...} expansions are really a use of component bindings, and can use binding prefixes. On Feb 1, 2008 1:32 AM, Davor Hrg <[EMAIL PROTECTED]> wrote: > You could split the string > and do sth like thi

Re: T5: Inserting a component into a message format

2008-02-01 Thread Davor Hrg
You could split the string and do sth like this: ${part1} ${part2} Inject ComponentResources .. to get a message do this: _resources.getMessages().get("key") then split the string and implement public String getPart1(){...} public String getPart2(){...} Davor Hrg On Feb 1, 2008 4:06 AM, rbo