I've seen many examples that show how to use a DataModel to create a datatable with
one column of commandlinks that act as a selection that can be read server-side.
I need to be able to do something similar for many columns with different entity types.
Case: an Activity can be allocated to one or more Actors (roles), and can involve additional Actors, Blocks, and Documents.
I have columns: Activity, allocated to Actor, involves Actors, involves Blocks, involves Documents.
It is easy using a DataModel to create commandlinks around an #{activity.name},
however I want to also be able to do this for every other entity type in the other columns,
so that when the user clicks on an Actor, Block, or Document the standard view of that object is brought up, and I'd prefer to do it without contriving links with identifier and class query parameters, i.e. I'd like to know how to do this the JSF-way via a backing bean.
By comparison with a content management system like Drupal CMS: every object gets a unique "node identifier" and it is easy to construct links to the standard view page of any object using links like "
http://www.example.com/node/nid", where nid is a numerical node identifier. In fact, that is only how Drupal works under "clean URLs" mode, in fact the node identifier is being passed as a query parameter.
I'm hoping there is a way of achieving this using JSF command links without having to explicitly pass an id through a query parameter.
More generally, I'd like to be able to place a commandlink leading to a standard view of any given object of any class, with the server-side knowing what object was selected, without being restricted to a loop over elements of a datamodel for just one column.
Very glad for ideas, I'm assuming this is a very common need and there must be standard JSF-friendly strategy for achieving this,
Webel
[Message sent by forum member 'webelcomau']
http://forums.java.net/jive/thread.jspa?messageID=482161