I used JB Weld to bond in metal ribs for my trim tab, and it is holding just fine. I also used JB to fasten the NACA ducts on my RV6 and RV8. On the RV6 they were on for 7 years and 900 hours and looked like brand new...no problems. You need to prepare the surfaces by roughing them up with sand paper and JB will bond really well.
I know this isn't the same as using foam, but it should work fine. Try a test piece if you really have a concern....the foam will probably rip before the JB gives way.