bandbox_OrderList_CustomerSearch.setValue(customer.getKunName1() + ", " + customer.getKunOrt());
// get all orders for the selected customer
HibernateSearchObject<Order> soOrder = new HibernateSearchObject<Order>(Order.class, getPageSizeOrders());
soOrder.addSort("aufNr", false);
soOrder.addFilter(new Filter("customer", customer, Filter.OP_EQUAL));
// Set the ListModel.
getPlwOrders().init(soOrder, listBoxOrder, paging_OrderList);
// get the first object and poll and show the orderpositions
ListModelList lml = (ListModelList) listBoxOrder.getModel();
if (lml.size() > 0) {
Order anOrder = (Order) lml.get(0);
if (anOrder != null) {
HibernateSearchObject<Orderposition> soOrderPosition = new HibernateSearchObject<Orderposition>(Orderposition.class, getPageSizeOrderPositions());
soOrderPosition.addFilter(new Filter("order", anOrder, Filter.OP_EQUAL));
// deeper loading of the relation to prevent the lazy
// loading problem.
soOrderPosition.addFetch("article");
getPlwOrderpositions().init(soOrderPosition, listBoxOrderArticle, paging_OrderArticleList);