I have following jsf-page:
<ui:repeat value="#{seriesController.getSeries(userDataBean)}" var="title">
<div>
<h:commandLink value="seriesDataBean.title = #{title}}">
<img width="250" src="/Test/image/cover_#{title}.png" alt="" />
</h:commandLink>
</div>
</ui:repeat>
The return value of .getSeries(...)
is a collection of strings containing some titles.
What I try to do now is when the user is clicking on the image, the value of the field "title
" (that is located in the bean-class "SeriesDataBean") should be set to #{title}
.
But this does not work of course (I have typed it that way to communicate my goal). Is there any way to get this running?
Best regards