Struts2 : How to display full text of the drop down item when selecting the item in the drop down
posted 3 years ago
I have a drop down defined using struts2 as below,
<s:select name="Type" headerKey="-1"
Value="All" list="DetailsList" listKey="DetailId" label="Details "
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.
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.