Yes, you will need pants for your son, not only for dinner dress codes but because he'll potentially be too cold in AK in shorts. While he may get a chance to wear shorts, I wouldn't bank on it.
Make sure you read the recent article I wrote on this section about Alaska for Kids -- suggestions on what to do in ports with kids.
Luisa Frey Gaynor
Family Cruise Editor