Hello,
I must customize the import_container(ucf) and i'm in trouble passing the arguments to the `combocontainer`, since it expects to get the containing components only from params, i would like to understand how to build the params with nested components, i have tried some combinations but none worked.
My last attempt loos like this, I override the init component from the container and overriten the params from action in order to get my custom components. something like first "component_custom", then "import"
@Override
public void onInit(ArgumentList args) {
ArgumentList newArgs = new ArgumentList(args);
newArgs.remove("componentArgs");
// Container class required
newArgs.replace("component", "subs_import");
// ComboContainer
ArgumentList compArgsSub = new ArgumentList();
compArgsSub.add("componentArgs", "subs_import");
compArgsSub.add("component", "subs_import");
ArgumentList compArgsImps = new ArgumentList();
compArgsImps.add("componentArgs", "import");
compArgsImps.add("component", "import");
String encodeCompArgsSub = ArgumentList.encode(compArgsSub);
String encodeCompArgsImp = ArgumentList.encode(compArgsImps);
ArgumentList argsBuild = new ArgumentList();
argsBuild.add("componentArgs", new String[]{encodeCompArgsSub, encodeCompArgsImp});
newArgs.add(argsBuild);
super.onInit(newArgs);
}
Any idea about how to build those params are welcome, or an example, or a reference.
Thank you.