on 08-30-2016 4:10 PM
Hi Jibin,
in the WCEM standard, that feature does unfortunately not exist. I recommend that you create your own TreeVCHandlerJSF.java that replaces the default one.
Start with a debug session for TreeVCHandlerJSF to see how it works. Set breakpoints in validateBeforeRendering(), navigateToNodeOutcome(). Check the TreeModel about selected views, check/ modify member selectedMyAccountNodeID.
After having understood how the view handler works, you should be able to implement the requested functionality.
Best regards,
Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steffen,
I am trying override View Component Handler
<ViewComponent name="tree"
componentHandlerClassName="com.customer.wec.app.comm.module.myaccounts.ui.impl.TreeVCHandler" />
in my extended module of myaccounts in ui-repository.xml
TreeVCHandler.java
package com.customer.wec.app.comm.module.myaccounts.ui.impl;
import com.sap.wec.app.comm.module.myaccounts.ui.beans.runtime.TreeVCHandlerJSF;
public class TreeVCHandler extends TreeVCHandlerJSF{
@Override
public String validateBeforeRendering() {
this.setSelectedMyAccountNodeId("I2");
return super.validateBeforeRendering();
}
}
added following dependency
but getting error after webshop login
Please help us to resolve this issue !!!
Regards,
Jibin Joy
Hi Jibin,
please have a look at the WCEM Dev & Ext Guide, chapter 9. There, you find guidance how to extend the SAP WCEM standard.
Please do not modify any WCEM SAP standard classes! Implement extensions in your own namespace. I suppose that some dependencies between the modules is not correctly maintained.
Best regards,
Steffen
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.