Supersolidity of cnoidal waves in an ultracold Bose gas