I have a data table:
<h:dataTable binding="#{table}" value="#{chooseKittens.kittenList}">
<h:column>
<p:commandLink value="#{chooseKittens.kittenList[table.rowIndex]}" action="#{chooseKittens.petKitten}"/>
</h:column>
</h:dataTable>
The dataTable is a of links that will take you to a different page. When I go to a different page, though, I want to save the value of the command link clicked so that I can display it in subsequent views. Is there a way to do this without SessionScope? I looked into t:saveState, but I'm not sure how to save just the variable clicked in a Datatable. If SessionScope is the only thing available, is there a way to make the kittenList in a different scope? (The kitten list should change when a new kitten is added in the database, so it should be in RequestScope or ViewScope).