Passing HTML link in to a resource bundle as parameter
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rene_Rattur
Posted On:   Monday, October 1, 2007 07:42 AM

Hi,
I would like to know if it's possible to pass HTML tags,
in this case a link, into an internationalized resource bundle, and get it displayed in a JSF page as a link. Are there any possible workarounds? -- not including fragmenting the message into multiple parts.

Re: Passing HTML link in to a resource bundle as parameter

Posted By:   Stephen_McConnell  
Posted On:   Monday, October 1, 2007 02:31 PM

This brings a couple of questions to mind.


First, why do you want to persist this set of HTML tags in a resource bundle? Where are you going to persist that resource bundle?


If you are going to persist that resource bundle, then there should be no problem passing it into a resource bundle, since all it is a string....


Now getting it out may be fun. The link could point to a JSP (or something like it) with a key to the particular HTML set that you want encoded as a url parameter. Then, the JSP could interpret your parameter and get the tag set out of the resource bundle and display it. This adds some flexibility later down the line, in case you want to persist your HTML tags in a database or as a text file or something like that.


Hope this helps.


Stephen McConnell

About | Sitemap | Contact