A surface-mount post is installed on top of the decking, and is usually put in place after all the decking and framing has been set in place.
Blocking or extra framing pieces are often added beneath the decking, so that the lag screws or bolts for the posts have enough material to be securely held in place.