You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dale Newfield <Da...@Newfield.org> on 2007/12/06 06:37:33 UTC

Re: [struts] How to solve the limitation of tag

Jeromy Evans wrote:
> DJR wrote:
>> What I'm doing now to solve the problem is to modify the source code 
>> of the
>> tag. But it's a bit troublesome, I think. Are there any more elegant
>> solutions?:thinking:
>>
>> DJR wrote:
>>  
>>> As is know to all, <s:optiontransferselect> tag has a "buttonCssStyle"
>>> attribute, which will make all buttons look in a unified style. But how
>>> can we make each button in a different style just like the image showed
>>> below:
>>>  http://www.nabble.com/file/p14163637/optiontransvertical.png
> 
> As per your last question about vertical layout, create your own 
> template for optiontransferselect and modify the style of each 
> button/use an image button.
> http://www.nabble.com/How-to-make-Optiontransferselect-Tag-vertical-in-Struts2--tf4901183.html#a14039295 

These are absolutely the correct instructions, but they're not as 
explicit as they could be:

Extract template/simple/optiontransferselect.ftl from the 
struts-core.jar, add it as 
WEB-INF/classes/template/simple/optiontransferselect.ftl
and modify it as you desire.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org