r1888 + move common code to renderRackInfoPortlet()