I'm using OpenLayers 3 and i need to load a Geoserver group-layer
In OL2 i used a code like this and it worked:
var layer_group = new OpenLayers.Layer.WMS(
"Sample Layer Group",
"http://localhost:8081/geoserver/wms",
{layers: "layer_group_name", transparent: true},
{isBaseLayer: false, visibility: false}
);
map.addLayers([layer_group]);
I have no idea how OL3 loads a group.. simple layers he can load correctly