[jboss-user] [JBoss Seam] - Object cached when page parameter not specified

fabio.ita04 do-not-reply at jboss.com
Tue Jan 23 20:10:27 EST 2007


According to Seam App Framework documentation, "when we link to the page with no request parameter, the Create page will be displayed".

But, the behavior I'm really getting is: when clicking "new" button for the first time, a new entity is created. So I click back button, and choose (in a list) a saved entity to edit. Click back button again, and click new button. Here, instead of having a new entity, the page displays the last edited entity.

A) pages.xml

  | <page view-id="/edit.xhtml">
  | <param name="id" value="#{home.id}"
  |     converterId="javax.faces.Long" />
  | </page>

B) index.xhtml

  | B1) New Button:
  | <s:link view="/edit.xhtml" value="#{messages.new}" propagation="begin" />

B2) Edit Button:

  | <s:link view="/edit.xhtml" value="#{entity.name}" propagation="begin">
  |      <f:param name="id" value="#{entity.id}" />
  | </s:link>

Note: If I declare new button with id param, with no value, so the page is correctly displayed:

  | <s:link view="/edit.xhtml" value="#{entity.name}" propagation="begin">
  |      <f:param name="id" />
  | </s:link>

Is it the desired behavior?

Thanx in advance

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005557#4005557

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005557

More information about the jboss-user mailing list