Minecraft wiki entry for Redstone_Torch, associated text: A redstone torch can be attached to:
the top or side of any full solid opaque block (stone, dirt, blocks of gold, etc.), including full-block mechanism components (command blocks, dispensers, droppers, note blocks, and redstone lamps)
the top only or side only of certain block. SeeOpacity/Placement.