We solve the variational problem associated with the total charge action on bounded domains in D = 2 background gravitational fields. The solutions of the field equations, stability and solitons are obtained holographically in terms of the massless spinning particles that evolve generating worldlines which play the role of boundaries. Moreover, we construct different background gravitational fields to apply the above mentioned program, thus we describe, in particular, solutions, stable (and unstable) solutions and soliton solutions.