• Post Reply Bookmark Topic Watch Topic
  • New Topic

question about event handling in Java Server Face?

 
Robert Strong
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, I'm using JSF in Weblogic8.1, I got a strange problem with event handling.

on index.jsp, a datatable was used to display a list of categories, and for each category, a <h:commandLink action="#{categoryHandler.retrieveProducts}"> was used to invoke the action method on a request scope manage bean.

the action method categoryHandler.retrieveProducts would return "productlist" to navigate to productlist.jsp.

on productlist.jsp, an exactly same datatable was used to display a list of categories on left side and on right side, another datatable was used to display a list of products.

on index.jsp, when I hit a link of a category, the action method: categoryHandler.retrieveProducts was invoked, and then navigate to productlist.jsp. the category list and product list is displayed correctly on productlist.jsp, but when I hit a category link again, the the action method: categoryHandler.retrieveProducts would no longer be invoked?

could anyone here help me out?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!