It is nutritionally possible to replace grass with grass cakes, but an important function of rabbits eating grass is to grind the front two front teeth. If the straw cake is soft, you won't be able to grind the front teeth.
Grinding incisors can also be replaced by molars for rabbits.