• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Value of a Taglib as attribute for another Taglib?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. An action cannot be used as an attribute value of another action.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic