Expand my Community achievements bar.

samuel786431
samuel786431
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • 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

    Type

    Questions

    Views

    388

    Likes

    0

    Replies

    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

    Type

    Questions

    Views

    426

    Likes

    0

    Replies

    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

    Type

    Questions

    Views

    2.6K

    Likes

    0

    Replies

    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?

    Type

    Questions

    Views

    1.5K

    Likes

    0

    Replies

    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

    Type

    Questions

    Views

    1.5K

    Likes

    0

    Replies

    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?

    Type

    Questions

    Views

    1.5K

    Likes

    0

    Replies

    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

    Type

    Questions

    Views

    2.4K

    Likes

    0

    Replies

    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...

    Type

    Questions

    Views

    466

    Likes

    0

    Replies

    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...

    Type

    Questions

    Views

    466

    Likes

    0

    Replies

    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

    Type

    Questions

    Views

    516

    Likes

    0

    Replies

    5
Top badges earned by samuel786431
Customize the badges you want to showcase on your profile