For performance reasons, we recently changed our web app from using FeatureLayers to using DynamicMapServiceLayers. We were able to get everything working so far except the legend. When we examine the html produced by the legend dijit, they are different.
With FeatureLayers and working properly:
[ATTACH=CONFIG]23040[/ATTACH]
With DynamicMapServiceLayers and only showing the symbols without the text:
[ATTACH=CONFIG]23041[/ATTACH]
The layer objects loaded into layerInfos (for esri.dijit.Legend) look like they have the same structure.