Hello,
We are on VCM76, our VPS vgn-ext-links package works fine with OOTB editlive web app. But does not persist data in INLINK table when switching the widget to custom widget for editlive enterprise version. The custom widget is configured via config console to point to our custom package:
Class_name: VCMEditLiveJavaEnt67Widget
Package_name: com.collegeboard.widgets.editliveenterprise
The custom package extends the default Inlinewidget and transformingWidget. The custom widget only set the context path to the new editlive enterprise war app. The links are correctly built and rendered during publish but not persist data in INLINK table. Switching to OOTB EphoxInlineTagWidget solves the problem without any other changes in the CTD. No exception found in log file. Any help would be greatly appreciated. June Ni
Below are the custom classes:
public class VCMEditLiveJavaEnt67Widget extends EphoxInlineTagWidget
{
private static final long serialVersionUID = -1L;
public TransformingWidget getTransformingWidget(AttributeDefinitionData data)
{
return new com.collegeboard.widgets.editliveenterprise.EditLiveJavaEnt67TransformingWidget(data);
}
}
public class EditLiveJavaEnt67TransformingWidget extends EphoxInlineTagTransformingWidget
{
private static final String CONTEXT_VALUE_EDITLIVE_JAVA67 = "/editLiveJava67";
private static final String USERNAME_KEY = "username";
private static final long serialVersionUID = -1L;
public EditLiveJavaEnt67TransformingWidget(AttributeDefinitionData data)
{
super(data);
}
protected void initializeParameters(Map params, boolean head, Locale locale)
throws AuthorizationException, ValidationException, ApplicationException
{
super.initializeParameters(params, head, locale);
String username = super._request.getRemoteUser();
params.put(USERNAME_KEY, username);
// Override Editlive path
params.put(EDITLIVE_CONTEXT, CONTEXT_VALUE_EDITLIVE_JAVA67);
}
}