add metadata part in commonTemplate

Allow you to add f:metadata + viewParam