コミュニティアチーブメントバーを展開する。

samuel786431
samuel786431
オフライン
タイプ
  • すべて
  • 質問
  • ディスカッション
  • アイデア
  • ブログ
ユーザー投稿による絞り込み
  • Hi,I need to create a dialog to edit the nav component.The dialog must have a number of tabs equal to the number of children of the page.Can i do this thing inside the jsp or i need a specific service? Thanks

    タイプ

    質問

    表示

    522

    いいね!

    0

    返信

    1
  • Hi,i have a service designed to share its annotation properties. I have 2 global arraylist initialized into the activation of the service (@Activate).Is there a way to launch the activation method of my service when the bundle starting?Thanks

    タイプ

    質問

    表示

    582

    いいね!

    0

    返信

    2
  • Hi,Anyone can explain me why inside the bundle the reference of resourceResolver is always null?Is there anybody that i can do to activate this reference?Jsp side seems to work fine but i'm not able to access the variable inside java codeThanks

    タイプ

    質問

    表示

    2.9K

    いいね!

    0

    返信

    4
  • So doesn't exist a method without the need of logout?The approach with the resource resolver doesn't need a try/catch and i think it is the right way but why my reference is null?

    タイプ

    質問

    表示

    2.0K

    いいね!

    0

    返信

    0
  • I don't have  a servlet or a jsp is a simple java class so i can't use the request.With the deprecated method i don't have problem, with resolverFactory.getAdministrativeResourceResolver(null).adaptTo(Session.class) i have a lot of session unclosed

    タイプ

    質問

    表示

    2.0K

    いいね!

    0

    返信

    0
  • I'm tryng to use:session = resourceResolver.adaptTo(Session.class);but the reference of resourceResolver is null inside my bundlei can recovery the session only by:session=resolverFactory.getAdministrativeResourceResolver(null).adaptTo(Session.class);Is it correct?

    タイプ

    質問

    表示

    2.0K

    いいね!

    0

    返信

    0
  • Hi,There are two methods to get the session:session= this.repository.loginAdministrative(null); session = resourceResolver.adaptTo(Session.class);With the first approach i need an explicit session.logout() and with the second the logout is managed automatically by sling, right? Thanks

    タイプ

    質問

    表示

    2.9K

    いいね!

    0

    返信

    10
  • This is the solution: BundleContext bundleContext = FrameworkUtil.getBundle(PublishPagesService.class).getBundleContext(); ServiceReference osgiRef = bundleContext.getServiceReference(PublishPagesService.class.getName()); PublishPagesService service = (PublishPagesService) bundleContext.getService(o...

    タイプ

    質問

    表示

    761

    いいね!

    0

    返信

    0
  • I have a component that is also a service. It initialize the variables inside the activate function and return them with another function.Inside the jsp i have  MyService pageService = sling.MyService(MyService.class) that launch the activate method. This part of code work fine Now inside the java c...

    タイプ

    質問

    表示

    761

    いいね!

    0

    返信

    0
  • Hi,now my component reads its annotation properties with the activation function.I need to have a property shared by two components.Can i read the property of another component inside the activation function?Thanks

    タイプ

    質問

    表示

    811

    いいね!

    0

    返信

    5