Is there a way to have polymorphic navigation with SEAM? The problem I am having is this:
I have two classes Person and Organization that are subclasses of a superclass Client. With SEAM I perform a search where you submit a name search
string and Companies and Persons with that name are returned in the query. I then display a list of persons and companies. When a user clicks a Person record I want them to go to the Person edit page. When a user clicks on an Organization I want them to go to the Organization page. The only two solutions I can think of is to:
1. Use an "instance of" inside my action to determine which page to user should go to
2. Add a method to the Client class named "getPage" and override it in the Person and Company classes. The method would return a page name or value that would be used to navigate to the Person and Client page respectively.
Are there better ways of doing this with SEAM?