Joining preformed parts which have previously been filled with foam