We are using WEM 8.1 and trying to edit a image using Edit Inline feature. We are able to update the text using inline editing but image is not working. As mentioned in the doc we have used the below code in our display view jsp.
<c:if test="${not empty component.image}">
<c:set var="image" value="${component.image}"/>
<c:set var="filePlacementPath" value="${image.placementPath}" scope="request"/>
<templating:imageInlineEdit oid="${component.system.id}" attributexmlname="image">
<%
String filePlacementPath= (String)request.getAttribute("filePlacementPath");
StaticFile sf = PageUtil.getStaticFile(filePlacementPath);
String contentManagementId = sf.getContentManagementId().getId();
%>
<%=MediaTagFactory.getMediaWrapperTag(contentManagementId, true)%>
</templating:imageInlineEdit>
</c:if>
<c:if test="${not empty component.mediaitem}">
<c:set var="media" value="${component.mediaitem}" scope="request"/>
<c:set var="mediaId" value="${media.system.id}" scope="request"/>
<templating:imageInlineEdit oid="${component.system.id}" attributexmlname="mediaitem">
<%
String mediaId= (String)request.getAttribute("mediaId");
%>
<%=MediaTagFactory.getMediaWrapperTag(mediaId, true)%>
</templating:imageInlineEdit>
</c:if>
In a CTD there is a attribute on which we are using Content Select CCE widget which allows out-of -the-box Image CTD type.
Do not know what we are missing here...looking for any help or suggestion on this, if anyone has faced this issue while upgrading to WEM 8.1