It would be nice to have the option to alternate background colors on template repeater instances. I end up using these for tables quite often. I can, of course, have another boolean parameter to the template for background color toggle, but it would be nice if this were a default option.
Is there a way to do that with the component as-is?
Correct. Its the simplest because you don't have to assign a boolean specifically when creating the dataset for the instances, just include the index number, which a for ndx, value in enumerate(values) loop will give.
If its any sort of data entry I normally pass index to my instances anyway, so I can know who fired a change or action.
I mean, Vision is Vision - you absolutely could inject a different background color to alternating rows from the outside. Whether that's a good idea or not is up to you. Look for TemplateHolder class instances as inner Swing components of the outer template repeater, and then set a different background color on the odd rows.