Skip to Content
0
Former Member
May 02, 2013 at 08:12 AM

WCEM 3.0 : Unable to extend ItemListViewHandlerImpl

30 Views

Hi,

I am working with WCEM 3.0 and have extended the shopping basket (richitemlist.xhtml) with a new Customer Material number input field. I have

created a new xhtml (itemCustomerMaterial.xthml) with the new field and included that in the richitemlist.xhtml. I would like to extend ItemListViewHandlerImpl for my ViewHandler (ItemDeliveryDateViewHandler), but I get an error:

Cannot process an HTTP request to servlet [Faces Servlet] in [xx] web application.
[EXCEPTION]
com.sap.wec.tc.core.runtime.jsf.binding.BindingModelException: Cannot call method customer.wec.app.common.module.salestransacation.ui.handler.impl.ItemDeliveryDateViewHandler.executeBeforeBuildView caused by java.lang.reflect.InvocationTargetException.
at com.sap.wec.tc.core.runtime.jsf.binding.BindingModel.invokeBindedMethod(BindingModel.java:788)
at com.sap.wec.tc.core.runtime.jsf.binding.BindingModel.callBuildTimeMethod(BindingModel.java:722)
at com.sap.wec.tc.core.runtime.jsf.vc.ViewComponentHandlerWrapper.callBuildTimeMethod(ViewComponentHandlerWrapper.java:391)
at com.sap.wec.tc.core.runtime.jsf.vc.ViewComponent.callBuildTimeMethod(ViewComponent.java:276)

Caused by: java.lang.NullPointerException: while trying to invoke the method com.sap.wec.app.esales.module.transaction.ui.beans.interf.SalesDocumentBean.isItemListDirty(com.sap.wec.app.esales.module.transaction.ui.beans.interf.ItemListBean) of an object returned from com.sap.wec.app.esales.module.transaction.ui.viewhandler.ItemListViewHandlerImpl.getSalesDocumentBean()
at com.sap.wec.app.esales.module.transaction.ui.viewhandler.ItemListViewHandlerImpl.checkBeanReferences(ItemListViewHandlerImpl.java:262)
at com.sap.wec.app.esales.module.transaction.ui.viewhandler.SalesTransactionBaseViewHandlerImpl.executeBeforeBuildView(SalesTransactionBaseViewHandlerImpl.java:330)

If I extend “ViewComponentHandlerBaseImpl<SalesTransactionsModuleAccess>” the page works, but I don't have access to ItemListViewHandlerImpl and would like to use the triggerUpdate() method to submit the form after updating the productID field.

Any help or clues are highly appreciated.

Best regards
Christian