Teacher bean in pagination