For my applications I actually create special Hivemind service xxxFlow
which is wired with IRequestCycle.
This service has methods for getting pages from request cycle and
setting them with necessary parameters.
For example interface SampleFlow can looks like:
interface SampleFlow
{
IPage getListOfItemsInCatalog( Long catalogId );
IPage getItemDetails( Long itemId );
IPage createItem( Long catalogId, Item newItem );
}
Those methods implementations can test for objects with given IDs
existence and do other tests.
In this case you still need to create listener but such listener will do
simple call of that service.
Something like:
IPage showListOfItemsInCatalog( Long catalogId )
{
return getSampleFlow().getListOfItemsInCatalog( catalogId );
}
and this service can be injected not only in page but in components too.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]