aspose file tools*
The moose likes Struts and the fly likes Struts2 : How to display full text of the drop down item when selecting the item in the drop down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 : How to display full text of the drop down item when selecting the item in the drop down" Watch "Struts2 : How to display full text of the drop down item when selecting the item in the drop down" New topic
Author

Struts2 : How to display full text of the drop down item when selecting the item in the drop down

kumar kolapalli
Greenhorn

Joined: Oct 05, 2012
Posts: 3
I have a drop down defined using struts2 as below,
<s:select name="Type" headerKey="-1"
Value="All" list="DetailsList" listKey="DetailId" label="Details "
listValue="DetailName" onchange=""/>

In a scenario, When each of the drop down items length is > 20 characters and when we select any of the drop down item, as the text length of the drop down item is more than drop down field size, iam not able
to see the full text of the drop down item.
Can any one please help me how to make full text of the drop down item visible/dispaly when select/view the drop down items.
.- Kolapalli
Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 94

usually width of this tag is decided at run-time if not specified. so no matter how long your listValue is it should be adjusted proper. check weather you are no using some <div> or <table> tag to restrict width of elements under it.


Learning some thing New Every Day
 
jQuery in Action, 2nd edition
 
subject: Struts2 : How to display full text of the drop down item when selecting the item in the drop down