Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Strings from a bundle
Strings from a bundle [message #475814] Mon, 14 April 2008 09:22 Go to next message
Eclipse User
Originally posted by: sandman42.libero.it

Hi,
I have a bundle where I have defined some strings like:

login_button_label=Login
city_name= Boston

and I use it in a command button like this way:

<h:commandButton value="#{bundle.login_button_label}"
title="#{bundle.login_button_label}"></h:commandButton>

Inside a panel grid I have a

<p>City of X</p>

My question is: is there any way to substitute X with something like
"#{bundle.city_name}" so I'll see City of Boston or, in general City of
valueofcity_name???

Thanks
Re: Strings from a bundle [message #475815 is a reply to message #475814] Mon, 14 April 2008 11:02 Go to previous messageGo to next message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
Hi, Francesco.

Won't <h:outputText value="City of #{bundle.city_name}" /> do the trick?


On Mon, 2008-04-14 at 09:22 +0000, Francesco Stupazzoni wrote:
> Hi,
> I have a bundle where I have defined some strings like:
>
> login_button_label=Login
> city_name= Boston
>
> and I use it in a command button like this way:
>
> <h:commandButton value="#{bundle.login_button_label}"
> title="#{bundle.login_button_label}"></h:commandButton>
>
> Inside a panel grid I have a
>
> <p>City of X</p>
>
> My question is: is there any way to substitute X with something like
> "#{bundle.city_name}" so I'll see City of Boston or, in general City of
> valueofcity_name???
>
> Thanks
>
Re: Strings from a bundle [message #475816 is a reply to message #475815] Mon, 14 April 2008 13:00 Go to previous message
Eclipse User
Originally posted by: sandman42.libero.it

Yes it does.

If forgot to add a [newbie] tag.

Thanks a lot for your answer.

Ciao
Re: Strings from a bundle [message #617715 is a reply to message #475814] Mon, 14 April 2008 11:02 Go to previous message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
Hi, Francesco.

Won't <h:outputText value="City of #{bundle.city_name}" /> do the trick?


On Mon, 2008-04-14 at 09:22 +0000, Francesco Stupazzoni wrote:
> Hi,
> I have a bundle where I have defined some strings like:
>
> login_button_label=Login
> city_name= Boston
>
> and I use it in a command button like this way:
>
> <h:commandButton value="#{bundle.login_button_label}"
> title="#{bundle.login_button_label}"></h:commandButton>
>
> Inside a panel grid I have a
>
> <p>City of X</p>
>
> My question is: is there any way to substitute X with something like
> "#{bundle.city_name}" so I'll see City of Boston or, in general City of
> valueofcity_name???
>
> Thanks
>
Re: Strings from a bundle [message #617716 is a reply to message #475815] Mon, 14 April 2008 13:00 Go to previous message
Eclipse User
Originally posted by: sandman42.libero.it

Yes it does.

If forgot to add a [newbie] tag.

Thanks a lot for your answer.

Ciao
Previous Topic:Strings from a bundle
Next Topic:Minor API change in M7
Goto Forum:
  


Current Time: Fri Sep 19 20:05:23 GMT 2014

Powered by FUDForum. Page generated in 0.10292 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software