Hi Hector,
There isn't any formal API, but you could create a little service easily
enough. Take a look at BreadcrumbPanel...
Something like
public interface RecentObjectService {
List<Object> recentObjects();
}
@DomainService(nature=DOMAIN)
public class RecentObjectServiceUsingWicket implements RecentObjectService {
@Programmatic
public List<Object> recentObjects() {
final BreadcrumbModelProvider session = (BreadcrumbModelProvider)
org.apache.wicket.Session.get();
final BreadcrumbModel breadcrumbModel =
session.getBreadcrumbModel();
final List<EntityModel> entities = breadcrumbModel.getList();
return entities.stream().map(x ->
x.getObject().getObject()).collect(Collectors.toList())
}
}
HTH
Dan
On Mon, 1 May 2017 at 21:38 Hector Fabio Meza <[email protected]>
wrote:
> Hi,
>
> I was wondering if there's a way to access the "recent objects" list that
> appears a a drop-down list in the lower part of the UI. I'd like to place
> actions on each screen that allows the user to go back to the screen they
> were before the current one (for example in a master-detail kind of
> situation).
>
> I suppose that list is related to the BookmarkService but couldn't find a
> method for retrieving the last visited object.
>
> Thank you.
>
>
> --
>
> *Hector Fabio Meza*
> *R&D Lead smartools*
> (57) 300 2254455 <%2857%29%20300%206815404>
> Skype: hectorf.meza
> www.smartools.com.co
>
>