This content has been marked as final. 
    
Show                 5 replies
    
- 
        
1. Re: Interpolate-Problem..
nimo22 Apr 7, 2009 8:59 AM (in response to nimo22)I am using SeamResourceBundle instead:
SeamResourceBundle.getBundle().getString("test"), "hello");the result is : 'I say hello'
this works.
but the Interpolater does not work:
Interpolator.instance().interpolate("#{messages['test']}", "hello");it returns
I say {0}
any suggestions?
 - 
        
2. Re: Interpolate-Problem..
marcioendo.marcioendo.gmail.com Apr 7, 2009 1:11 PM (in response to nimo22)test = I say {0}Should have been
test = I say #0
 - 
        
3. Re: Interpolate-Problem..
nimo22 Apr 7, 2009 4:26 PM (in response to nimo22)Is this really the matter?
I have thought, in SEAM the placeholder in jsf
{0}is the same as
#0
.
 - 
        
4. Re: Interpolate-Problem..
marcioendo.marcioendo.gmail.com Apr 7, 2009 7:23 PM (in response to nimo22)Sorry, you're right, my mistake.
You probably need to interpolate it twice.
Interpolator i = Interpolator.instance(); String msg = i.interpolate("#{messages['test']}"); msg = i.interpolate(msg, "Hello"); - 
        
5. Re: Interpolate-Problem..
hcgpragt Apr 7, 2009 9:30 PM (in response to nimo22)Not quite,
just log a long value in #0 and in {0} and see the difference.
for instance 123456789L:- #0 gives 123456789
 - {0} gives 123.456.789