Updating backing bean
Hi!
I have a problem with JSF technology. I'm developing a weblog.
summary.jsp list of recent articles
article.jsp an article
If you click on an article title in summary.jsp, you are redirected to article.jsp. I use a backing bean selectedArticle to store information on what article has been selected. SelectedArticle has session scope.
In ariticle.jsp you can add new comment. If you add a new comment, tables are updated correctly. This is the JSP code for the submit button.
<h:commandButton actionListener="#{comment.saveComment}" action="viewArticle" value="Send" >
<f:param name="id" id="articleId" value="#{selectedArticle.id}"/>
</h:commandButton>
However when I invoke selectedArticle.article.comments I get the old comment list! selectedArticle is not updated.
Can you help me?
Marco

