Csaba Meszaros Vor 7 Jahren This works for services fine (e.g. if we have API), but what about the modules which are dedicated to be ResourceLoader holders? I have a module which contains the class which implements ResourceBundleLoader, and a Language.properties file. Let this module be named as com.example.registration.resource. How would you add it as a dependency to the fragment using it? Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Rocco Germinario Vor 7 Jahren Interesting technique for injecting reference to services.But it's not really about dependencies: I tried to simply use MemberRequestLocalServiceUtil and it just works... Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David H Nebinger Rocco Germinario Vor 7 Jahren The Util classes are effectively deprecated when using OSGi. You'll hear over and over again that if you're doing OSGi, you should do OSGi and avoid the static Util classes. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David H Nebinger Rocco Germinario Vor 7 Jahren The Util classes are effectively deprecated when using OSGi. You'll hear over and over again that if you're doing OSGi, you should do OSGi and avoid the static Util classes. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Rafik H Vor 6 Jahren Yes, Outside using the Util class for Services. Other components are only accessible using OSGi service registry. one practical example is using Item Selector in your fragment. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David H Nebinger Rafik H Vor 6 Jahren You shouldn't even use the Util classes for services.If you're doing OSGi, then do OSGi. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David H Nebinger Rafik H Vor 6 Jahren You shouldn't even use the Util classes for services.If you're doing OSGi, then do OSGi. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Andy Wu Vor 6 Jahren good idea for using service in jsp fragment Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Ahmed Hasnaoui Vor 4 Jahren hi all, is this still valid for 7.1? Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David H Nebinger Ahmed Hasnaoui Vor 4 Jahren Yes, as well as for 7.2. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Javi Torres David H Nebinger Vor 4 Jahren - Bearbeitet Hi David, thanks for the blog post. I'm trying to use this approach, and it works fine with my custom service, but only if the service does not have any custom finder defined. Otherwise, the service object I'm pushing as a request attribute is null. Do you know if there is a workaround for this? Thanks! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David H Nebinger Ahmed Hasnaoui Vor 4 Jahren Yes, as well as for 7.2. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Javi Torres David H Nebinger Vor 4 Jahren - Bearbeitet Hi David, thanks for the blog post. I'm trying to use this approach, and it works fine with my custom service, but only if the service does not have any custom finder defined. Otherwise, the service object I'm pushing as a request attribute is null. Do you know if there is a workaround for this? Thanks! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Javi Torres David H Nebinger Vor 4 Jahren - Bearbeitet Hi David, thanks for the blog post. I'm trying to use this approach, and it works fine with my custom service, but only if the service does not have any custom finder defined. Otherwise, the service object I'm pushing as a request attribute is null. Do you know if there is a workaround for this? Thanks! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen