JF-17 does have a better payload though, F7-BGI has a payload of 4000 lbs. Wouldn't JF-17 be useful in ground attack roles,at least compared to F7-BG/BGI for its superior payload?
EDIT: Also, PAF is gradually replacing all its f7's with jf-17's, is it not? And india is trying to do the same...