Skip to Content

@SystemSetupParameterMethod executed only once ?

Hello guys, I have a FlexibleSearchQuery in a method annotated with @SystemSetupParameterMethod

This query controls a SystemSetupParameter with setMultiSelect(true) and then addValue() for the items I get from the database.

During the HAC Update phase, I add some items to the database and I wish to see those items refreshed when i'm back in the update HAC page.

Unfortunately it seems that the Update page is generated once for all and never refreshed. Is there a way to force it ?

Thanks !

edit: After some research, I found that it has something to do with /hac/platform/init/data which is responsible for sending the UI information in JSON, and it doesn't change its answer over time..

0
Add a comment
10|10000 characters needed characters exceeded

author's profile photo Former Member
Former Member Jun 17, 2016 at 10:37 AM

0

106

Actions

1 Answer

Best Answer
author's profile photo Former Member
Former Member Jun 17, 2016 at 11:40 AM
0

SystemSetupCollectorImpl.loadSystemSetupBeans() is responsible for loading the system parameters. So I just found a hackish way to make it reload the system parameters with :

 final Method declaredMethod = SystemSetupCollectorImpl.class.getDeclaredMethod("loadSystemSetupBeans", (Class<?>[]) null);
 declaredMethod.setAccessible(true);
 declaredMethod.invoke(Initialization.getSystemSetupCollector(), (Object[]) null);


Add a comment
10|10000 characters needed characters exceeded