Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Value of a Taglib as attribute for another Taglib?  RSS feed

 
Morten Frostie
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to give the value of a given taglib as the attribute to a another concrete taglib?

Ex:

<portlet:button type="primary" name='<resources:text key="buttonText"/>'/>

Whereas "<resources:text key="buttonText"/>" will return a text, found in a resourcefile defined by the key "buttonText".

At the time of writing I have not been succesful at getting this or any alternative to work..
The only working solution I have is to skip the "name" parameter and instead define the name of the button in the body, such as this:

<portlet:button type="primary"><resources:text key="buttonText"/><portlet:button/>

However, this approach is not really what I necessarily want.

[ April 30, 2008: Message edited by: Morten Frostie ]
[ April 30, 2008: Message edited by: Morten Frostie ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. An action cannot be used as an attribute value of another action.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!