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

[887 byte] By [emptyseta] at [2007-10-2 5:56:46]
# 1
I didn't understand where exactly u updating selectedArticle.article.comments in ur code. clarify?
chandu_chanamolua at 2007-7-16 2:05:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...