10-21-2016 07:15 AM
Hello,
I am very interested in customizing Aikau pickers. Therefore, I ran the example provided here.
Everything was OK except one point :
When I open the hybrid page (rendered with the standard header and footer, like in http://localhost:8080/share/page/dp/ws/docVersionPicker), I see multiple instances of the version picker (see screen-shot 1.png).
The two instances are cloned : when I modify one instance, the other one is modified in the same way (see screen-shot 2.png).
What do you think about that ? Is it a bug or a configuration issue ?
Eric
10-21-2016 07:35 AM
That's a pretty old blog post... but it should hopefully hold true - what version of Alfresco and Aikau are you using?
If you're getting cloned behaviour then it's almost certainly because the pickers are sharing the same pubSubScope... each time you do something on one picker it is publishing topics on the same scope as the other picker, which is why both have the same result.
It could be that what you mean is that you're seeing multiple instances of the picker instead of just one? In which case this is likely to be because you're on an older version of Aikau where multiple instances of the same service can exist, and two instances of the same service (probably the DialogService) are duplicating the request. This is an issue that was fixed in more recent versions when we ensured that only a single instance of each service could exist at each pubSubScope.
10-21-2016 08:50 AM
Hello,
Thanks a lot for your message.
I am using Alfresco 5.0.d with Aikau 1.0.44.
10-21-2016 09:27 AM
Hmm, that's unusual then... I thought we'd solved this back in 1.0.32 - see [AKU-531] Create a service registry to de-dupe services - Alfresco JIRA
Can you confirm the behaviour you're experiencing? Is it that you see the picker created twice (you're not trying to have 2 pickers?). I'm guessing that you have duplicate DialogServices registered. Does the problem go away when you don't use the hybrid page (using "dp" rather than "hdp" in the URL?)
10-21-2016 10:21 AM
Thanks a lot for your message !
Indeed, the problem goes away when I am not using the hybrid page (with "dp").
I see the picker created twice and I am not creating two picker (in fact, I use the code from here, without change).
10-21-2016 10:29 AM
This is a puzzle then... I wonder if we needed to do further fixes from 1.0.32 onwards, I'd need to go back through the release notes to be sure. It would be interesting if you could try on the latest version of Aikau (1.0.91 at the time of writing)... if it's still and issue then we should definitely investigate this as a bug !
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.