I suggest changing your control registry entry to:
<control-descriptor name="mycontrol">
<property-list>
<property name="id">
<flag name="final" />
</property>
<property name="datasrc">
<flag name="nonconditional" />
<flag name="global" />
</property>
<property name="dataattribute">
<flag name="final"/>
</property>
</property-list>
<component-list>
<components id="co" layout="horizontal">
<mylabelcomponent id="co1" dataattribute="@{dataattribute}" />
</components>
</component-list>
<containers>
<container name="section" />
</containers>
</control-descriptor>
Component registry entry to:
<component-descriptor name="mylabelcomponent" instance-class="${package}.controller.BoundComponentInstance">
<property-list>
<property name="jsp-filename">
<default-value>mylabel</default-value>
</property>
<property name="id">
<flag name="final" />
</property>
<property name="dataattribute" />
<property name="defaultrender">
<default-value>true</default-value>
</property>
</property-list>
</component-descriptor>
And your component jsp to:
<%@include file="../common/componentheader.jsp" %>
<div id="<%=id%>">Hello <%=boundComponent.getString()%>!</div>
<%@include file="../common/componentfooter.jsp" %>
------------------------------
Brian Ragusa
Senior Software Engineer
IBM
------------------------------
Original Message:
Sent: Mon February 14, 2022 10:18 AM
From: Jason Uppenborn
Subject: update custom control when user moves to Next record
I moved the customization from the component to the control, but that didn't help.
A control is a collection of components. For example, a Textbox control has a label component and a textbox component.
Unfortunately, I'm not able to debug.
------------------------------
Blessings,
Jason Uppenborn
Sr. Technical Maximo Consultant
Cohesive Ontracks
------------------------------
Original Message:
Sent: Fri February 11, 2022 09:49 AM
From: Johann Rumpl
Subject: update custom control when user moves to Next record
Hi Jason,
On our end it worked reliable after overwriting the CONTROL not the COMPONENT class. These are two different things and honestly said I can't explain the difference. In one of our developements the control registry looks like that:
<control-descriptor name="eam_dynamiccalendar" instance-class="ch.eam.webclient.controls.EAMDynamicCalendarControl">
<property-list>
<property name="display">
The class mentioned extends psdi.webclient.system.controller.ControlInstance
Are you able to debug classes? Is/are the method(s) executed if you press the next/previous buttons?
Cheers
Johann
------------------------------
Johann Rumpl
Maximo Senior Consultant
EAM Swiss GmbH
Gais
Switzerland
Original Message:
Sent: Thu February 10, 2022 06:19 PM
From: Jason Uppenborn
Subject: update custom control when user moves to Next record
That doesn't seem to have helped.
Source for maximouiweb/webmodule/WEB-INF/classes/demo/webclient/system/controller/DemoBoundComponentInstance.class:
package demo.webclient.system.controller;import java.lang.reflect.InvocationTargetException;import psdi.webclient.system.controller.BoundComponentInstance;public class DemoBoundComponentInstance extends BoundComponentInstance { public DemoBoundComponentInstance() { super(); } @Override public int render() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { setChangedFlag(); return super.render(); }}
changed line in mylabel-registry-extension.xml
<component-descriptor name="mylabelcomponent" instance-class="demo.webclient.system.controller.DemoBoundComponentInstance">
------------------------------
Blessings,
Jason Uppenborn
Sr. Technical Maximo Consultant
Cohesive Ontracks
Original Message:
Sent: Thu February 10, 2022 01:41 AM
From: Johann Rumpl
Subject: update custom control when user moves to Next record
Hi Jason,
You've to create a Custom Control Java Class overwriting the render() Method:
/**
*
*/
public int render() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
setChangedFlag();
return super.render();
}
Don't forget to reference your class in the registry-extensions xml.
cheers
Johann
------------------------------
Johann Rumpl
Maximo Senior Consultant
EAM Swiss GmbH
Gais
Switzerland