Developer

setMenuListToSession(List< T >) method

Set a new menu list and save it into the session attribute.

Syntax
Syntax
protected final< T extends BeanConverterInterface< T > > void setMenuListToSession (List< T > list) throws DBException

Parameters

  • list menu list to be persisted to session attribute

Exceptions

  • DBException Exception when accessing or saving the session variable from database

Remarks

Menu list is retrieved from the datasource in the init(SmappStateProcessingAction) method that is implemented by the subclass. The menu list needs to be persisted into session attribute so that it can exist over multiple SMS sessions without reloading it from the source (database or service). To persist the menu list using this method, the object in the list has to implement BeanConverterInterface and Comparable.

This method is typically called from the init(SmappStateProcessingAction) method.