The tag <apex:selectList id="recent" size="1" > should render as drop down list (picklist) if the size=1. If you set the size>1, then it will render as a list box.
The tag <apex:selectList id="recent" size="1" > should render as drop down list (picklist) if the size=1. If you set the size>1, then it will render as a list box.
Swarna,
The tag <apex:selectList id="recent" size="1" > should render as drop down list (picklist) if the size=1. If you set the size>1, then it will render as a list box.
Randy
All Answers
<apex:selectList id="recent" size="1" >
<apex:actionSupport event="onchange" action="{!changeRt}" reRender="recentmodify"></apex:actionSupport>
<apex:selectoption itemLabel="Recently Modified" itemValue="mod"></apex:selectoption>
<apex:selectoption itemLabel="Recently Created" itemValue="cre"></apex:selectoption>
</apex:selectList>
you can also use
<apex:selectOptions ... data-binding ... etc.
But this creates a list box, not drop-down(picklist). Is there any other option?
Swarna,
The tag <apex:selectList id="recent" size="1" > should render as drop down list (picklist) if the size=1. If you set the size>1, then it will render as a list box.
Randy
Very useful post.
However, this should totally be made explicit in the VisualForce reference document. :)