You could create a model listener that detects the changing of this attribute and rerenders the template