• Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing bundled resource as attribute to panel tag  RSS feed

 
c case
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a custom panel tag that has a few attributes, and would like the users of my tag to be able to pass in i18n values to retrieve the proper customizations for their locale. The problem I'm running in to is this:

Example panel tag usage from calling jsp (what I'd like to work but doesnt):

<tags:tag message="button.message"/>

Example tag file:

<DIV STYLE="button">${message}</DIV>

Example resource file:

button.message="SUBMIT"

So, how can I make the value of the resource file be passed into the panel tag as the value of the attribute? Thanks for any help.
 
c case
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured it out. Used the <jsp:attribute> tags underneath the panel tag, and it allowed me to evaluate the property expression.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!