Reply To: Url mapping with bean

Splash Forums Rewrite Users Url mapping with bean Reply To: Url mapping with bean


You are missing the most interesting part. What do you return from this method.


In your case it should do something like this:

public String viewDetailPage(String content) {

  // or something similar
  this.content = content;

  return "pretty:viewCategory";


BTW: Calling an action method in a table row which initializes the details view is bad practice. This typically breaks bookmarking. You view page URL should contain all the information that is required to identify the item that is viewed. And initialization of the page should work even if the URL is manually entered into the browser bar. Typically you can than use a h:link in your table which simply renders a standard HTML link.