Im sorry.. whos boasting about either one?
...just wondering what you saw.
Paul is talking about boasting about works, he is talking about people( mainly of the religious jewish leaders ) who preaches ritual works as the way to salvation.
James is saying that if any one really has any faith it will be shown in their works.
Many people boasts about their works and the ones who are opposed to works boasts about their faith and i think they are both liars.