Ephesians 2: 8For it is by grace you have been saved, through faith—and this not from yourselves, it is the gift of God— 9not by works, so that no one can boast.10For we are God's workmanship, created in Christ Jesus to do good works, which God prepared in advance for us to do.
Many people get this one wrong and only half right. The Jehovah's Witnesses are starting to come around a little bit on this but are still wrong. It's such a simple thing but in ways is very complex. First one must be saved and this is an action buy acceptance. Salvation is a gift, grace. You either except it or you do not. If you chose to accept it, then you except it wholly and with full confidence and faith that it is truth. At this point you are saved. Ephesians 2: as you have listed is correct. You can not get salvation by works. As for James 2: 24, 26 ; we are still under Grace however, look at it like this. You are saved and as a result of you being truly saved, no one can go around being saved and not run into a situation that tests that faith. Look at the example in James Suppose a brother or sister is without clothes and daily food. 16If one of you says to him, "Go, I wish you well; keep warm and well fed," but does nothing about his physical needs, what good is it? 17In the same way, faith by itself, if it is not accompanied by action, is dead.
What he is saying here is that, sure you are saved but when it comes down to it you actions say otherwise. In other words, if you are truly saved, you have become a new person. Your actions will justify your faith. You are saved without works, your works do just that, they justify your faith. These are the good works that are from Ephesians 2:10For we are God's workmanship, created in Christ Jesus to do good works, which God prepared in advance for us to do. These works are our deeds our actions that demonstrate our faith. If our actions are in conflict with our faith, then do we really have faith and therefore are we really saved in the first place.
Once we are saved, our hearts are changed and we forgive, we help, we do works that are in us from the beginning. This does not mean that we go out preaching door to door and boast about it, those works Jesus will say "I do not know you". If the Preaching work comes from the heart and is not defined as you must go out there or you need to get your hours in, then it is works or actions that align with salvation.
The works that are from God are from the heart, done with love, out of love of our brothers. This is the law that was written in our hearts, Love. If you love one another, it takes care of all the laws of God, does it not?
So in a nutshell, salvation is a gift by acceptance and having faith in that gift. This will in turn change you into a new person, a change of heart, if you will. And as a result of this change you will begin to act in a new way and this way is the works of God that he created in us. We will demonstrate this by our actions and our deeds (works). These come from the heart.
As you can see that there are some Jehovah's Witnesses that love to boast about their preaching work and then call it works! Isn't that something!