Are Aikau widgets suitable for Share Form controls?
I'm trying to create a custom control for Share forms. Controls are just an ".ftl" file so there is no webscript controller where you could define your Aikau model. @ddraper Is Aikau the right tool for this?
So fra I have created a custom Dojo templated widget and there I require the Aikau components I need and instantiate them in order to be places inside my widget. After all Aikau Widgets are Dojo Widgets, aren't they?
It works right for AlfButton, and I've even been able to publish a payload that creates a dialgo through the DialogService.
But with AlfList I'm facing a problem. The list seems to work but the required CSS related to the list are not loaded. I suspect that this might be related to the way CSS dependencies are resolved, they probable are evaluated when parsing the model so "manual" instantiation of Aikau Widgets does not get the required CSS. Am I right?
Re: Are Aikau widgets suitable for Share Form controls?
David Draper is no longer at Alfresco and also no longer active on this platform. Due to how Aikau widgets are integrated into the page load cycle, they are not a good fit for custom form controls. They do not play well with the underlying lifecycle and runtime management of regular Share forms, i.e. with regards to collecting all field values when the form is about to be submitted. If you need to use Aikau widgets for forms, consider using a complete Aikau form instead with all-Aikau widgets.