Two teenage boys have appeared in court, denying the murder of a "loving father" who was stabbed to death in South Wales.