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?
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.
Thanks Axel for the information.
El jue., 15 nov. 2018 21:03, afaust <community@alfresco.com> escribió:
Alfresco Community
<https://community.alfresco.com/?et=watches.email.thread>
Re: Are Aikau widgets suitable for Share Form controls?
reply from Axel Faust
<https://community.alfresco.com/people/afaust?et=watches.email.thread> in *Alfresco
Content Services (ECM)* - View the full discussion
<https://community.alfresco.com/message/839188-re-are-aikau-widgets-suitable-for-share-form-controls?commentID=839188&et=watches.email.thread#comment-839188>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.