I have noticed one strange thing about apex:pageBlockSectionItem that if i put a inputField or selectList under pageBlockSectionItem its label gets disappear. I don't know why is this happening? Can anybody explain this.
<apex:pageBlockSectionItem >
<apex:outputLabel value="Expiration Date (Mo/Yr)"></apex:outputLabel>
<apex:pageBlockSectionItem >
<apex:selectList value="{!expDate}" size="1">
<apex:selectOptions value="{!dates}"/>
</apex:selectList>
<apex:pageBlockSectionItem >
I have find out one work around of this by putting up a outputLabel block just before inputField as shown in above example. can anybody explain the best way to get rid of this problem?