Patterning by phototackifying or by photopatterning adhesive