Martin Dulak 6年 前 Hello David,thanks for the post, the functionality you present looks really great. However I have some problems making it work. I've tried implement my custom context provider, I tried to copy-paste User provider from Liferay GIT and I have also tried building and running your project. Every time without any success.I've tried debugging #createContext method of providers but the execution never got there. Is there anything else I have to do with my environment to make Context Providers work? I'm running DXP SP6 version.Thank you,Martin 投票するためにはログインが必要です。 次として送信する: キャンセル
Eric COQUELIN 4年 前 - 編集済み Unfortunately, one step is missing. I know your post is already 2 years ago but for the potential readers, following step is missing @Override public Set<Object> getSingletons() { Set<Object> singletons = new HashSet<>(); singletons.add(_companyContextProvider); singletons.add(_localeContextProvider); singletons.add(_userContextProvider); singletons.add(_workflowListedTaskResource); singletons.add(_workflowTaskResource); return singletons; } Check WorkflowJaxRsApplication.java in the workflow REST module. I wish I could enable this provider without using singletons.add() and using only OSGI annotations. 投票するためにはログインが必要です。 次として送信する: キャンセル David H Nebinger Eric COQUELIN 4年 前 - 編集済み Thanks, Eric. Yeah, this post isn't just two years old, it was also written for Liferay 7.0 IIRC. It doesn't surprise me that the code needed a little bit of TLC. Thanks for the update! 投票するためにはログインが必要です。 次として送信する: キャンセル
David H Nebinger Eric COQUELIN 4年 前 - 編集済み Thanks, Eric. Yeah, this post isn't just two years old, it was also written for Liferay 7.0 IIRC. It doesn't surprise me that the code needed a little bit of TLC. Thanks for the update! 投票するためにはログインが必要です。 次として送信する: キャンセル