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
>
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
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