Before attempting to glue it back on, you may want to consider simply replacing it with a new one. If you live near an Apple Store, go there and ask if they can replace it. They're often pretty good about fixing stuff like that without charge, or even just giving you a couple of spares if you ask politely.
Authorized Repair shops will probably stock them as well but will most likely charge for a replacement.
It's worth a shot.