Using layerName in styles to tell the GeoExt::WMSLegend to use a specific url
Using layerName in styles doesn't require to set defaultStyleIsFirst to false