The s:text tag is considered a data tag, not a UI tag, so there is no ftl
template backing that take.  Your only option is to extend the tag to add
the functionality that you describe.  The functionality you describe sounds
like it might be useful to others.  Have you considered creating a patch to
add this functionality to the existing text tag?
Tom


Ivan Žučenko wrote:
> 
> Hi all,
> I have an intention to enabel debug mode in my application and one of the
> features should be that it shows resource name in front of every localized
> text in jsp retrieved by <s:text>
> For example <s:text name="RESOURCE_1">This is resource </s:text> would
> render in html page as: [RESOURCE_1]This is resource.
> I thought of making my custom tag with same fubctionality as in *
> org.apache.struts2.components.Text *or try to extend  *
> org.apache.struts2.components.Text  *or just modify text template. My
> first
> idea was just to create custom theme for it but it is not possible since
> text i snot UI tag.. So which way would you recomand t go?
> Thanks Ivan
> 
> 

-- 
View this message in context: 
http://www.nabble.com/changing-template-for-s%3Atext-tf4719322.html#a13491483
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to