on 2018 Jan 29 9:14 AM
Hey guys,
is there any possible way to enable inline editing in the multireferenceeditor only for single columns in the cockpitNG and not for the complete row? Some columns should be limited to not be editable Or is there any way to configure it with user rights? I restricted the user to be able to change and read an attribute but the only thing that happens is that it shows "you have no permission" but I am still able to edit it via inline editing
Request clarification before answering.
Hi ,
thanks for your answer. I'm currently using my own class which extends the DefaultCellRenderer because I only want to edit one cell if it equals some pattern. It's giving me nullpointers right now when he is checking at:
if (isAtomicAttribute(cellContext))
and
else if (isCompletxAttribute(cellContext))
inside the DefaultCellRenderer.
Also he's not using my code even though I defined a bean inside my spring.xml and assigned it inside my cockpit.xml
cockpit.xml
<list-view:column qualifier="cavokMedia" id="cavokmedia" spring-bean="premCavokMediaLabelRenderer"/>
spring.xml
<alias name="premCavokMediaLabelRenderer" alias="cavokMediaLabelRenderer"/>
<bean id="premCavokMediaLabelRenderer"
class="ecx.io.prem.pim.backoffice.widgets.renderer.PremCavokMediaMultiReferenceEditorLabelRenderer">
<property name="typeFacade" ref="typeFacade"/>
<property name="objectValueService" ref="objectValueService"/>
<property name="labelService" ref="labelService"/>
<property name="permissionFacade" ref="permissionFacade"/>
<property name="validationRenderer" ref="validationRenderer"/>
</bean>
My code:
public class PremCavokMediaMultiReferenceEditorLabelRenderer extends DefaultCellRenderer<T>
{
@Override
public void render(final CellContext<T> cellContext)
{
for (final DataAttribute attribute : cellContext.getRowEntryDataType().getAttributes())
{
if (attribute.equals("cavokMedia"))
{
cellContext.setInlineEditingEnabled(false);
}
}
super.render(cellContext);
}
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 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.