You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by DJR <ji...@gmail.com> on 2007/12/05 02:49:44 UTC

How to solve the limitation of tag

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 
-- 
View this message in context: http://www.nabble.com/How-to-solve-the-limitation-of-%3Cs%3Aoptiontransferselect%3E-tag-tf4946943.html#a14163637
Sent from the Struts - User mailing list archive at Nabble.com.


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


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

Posted by Dale Newfield <Da...@Newfield.org>.
DJR wrote:
> I think it better that the Struts2 framework add some additional attributes
> for tag of optiontransferselect.
> For instance, buttonCssStyle2 for one of the select button and
> buttonCssStyleAll, buttonCssStyleAll2 for the selectAll buttons.

Feel free to develop patches for that, create a JIRA ticket, and upload 
the patches.

The patches related to WW-2051 should serve as a good example:
https://issues.apache.org/struts/browse/WW-2051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

-Dale

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


Re: How to solve the limitation of tag

Posted by DJR <ji...@gmail.com>.
I think it better that the Struts2 framework add some additional attributes
for tag of optiontransferselect.
For instance, buttonCssStyle2 for one of the select button and
buttonCssStyleAll, buttonCssStyleAll2 for the selectAll buttons.

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 
> 

-- 
View this message in context: http://www.nabble.com/How-to-solve-the-limitation-of-%3Cs%3Aoptiontransferselect%3E-tag-tf4946943.html#a14188017
Sent from the Struts - User mailing list archive at Nabble.com.


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


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

Posted by Dale Newfield <Da...@Newfield.org>.
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


Re: How to solve the limitation of tag

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
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

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


Re: How to solve the limitation of tag

Posted by DJR <ji...@gmail.com>.
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 
> 

-- 
View this message in context: http://www.nabble.com/How-to-solve-the-limitation-of-%3Cs%3Aoptiontransferselect%3E-tag-tf4946943.html#a14185637
Sent from the Struts - User mailing list archive at Nabble.com.


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