Re: Get UUID of a Node

2012-06-26 Thread Bhathiya Jayasekara
Hi Sam, That's great. I tried it and worked soo well. Thank you very much for your time. --Bhathiya On Tue, Jun 26, 2012 at 10:24 PM, sam ” wrote: > save the following as uuid.jsp > > =8<== > > <%-- > uuid.jsp > --%> > <%@page session="false" > import="javax.jcr.Node" > trimDirectiveWhitesp

Re: Get UUID of a Node

2012-06-26 Thread Bhathiya Jayasekara
Hi Justin, That's what exactly I was looking for. What I want is to create a node and take its UUID. So now I should add jcr:mixinTypes=*mix*:*referenceable **to the new node and then UUID will be there in its json. Am I correct?* And also, if I want the UUID of an existing node, will adding jcr:

Re: Get UUID of a Node

2012-06-26 Thread sam ”
save the following as uuid.jsp =8<== <%-- uuid.jsp --%> <%@page session="false" import="javax.jcr.Node" trimDirectiveWhitespaces="true"%> <%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0"%> <%= resource.adaptTo(Node.class).getIdentifier() %> =8<== and execute the follo

Re: Get UUID of a Node

2012-06-26 Thread Justin Edelson
If the Node has the mix:referenceable mixin, you should see the UUID in the JSON output. Justin On Tue, Jun 26, 2012 at 11:58 AM, Bhathiya Jayasekara wrote: > Hi, > > Thank you for the reply. As I understand, what you say is to write an esp > or something in server side to get UUID and respond

Re: Get UUID of a Node

2012-06-26 Thread Bhathiya Jayasekara
Hi, Thank you for the reply. As I understand, what you say is to write an esp or something in server side to get UUID and respond to an http request. Correct me if I'm wrong. Isn't there a direct way to do this only with a simple http request? Someway like in this[1] cheatsheet? I mean isn't it a

Re: Get UUID of a Node

2012-06-26 Thread sam ”
resource.adaptTo(Node.class).getIdentifier() On Tue, Jun 26, 2012 at 10:48 AM, Bhathiya Jayasekara wrote: > Hi all, > > How can I get the UUID of a Node with an http request? I searched a lot but > had no luck. :( > > Thank you. > > --Bhathiya >

Re: How to debug adapterfactory?

2012-06-26 Thread Justin Edelson
Created https://issues.apache.org/jira/browse/SLING-2522 for this. On Tue, Jun 26, 2012 at 8:16 AM, Felix Meschberger wrote: > Hi, > > Am 26.06.2012 um 13:17 schrieb Robert A. Decker: > > > Thanks for the help. I figured it out. > > > > It as because I declared my adapter factory service like: >

RE: Sling content location using maven-launchpad-plugin:start

2012-06-26 Thread Phillpotts, James
Hi Robert, Yep, that sounds like a good workaround, thanks! Cheers, James -Original Message- From: Robert Munteanu [mailto:rmunt...@adobe.com] Sent: 26 June 2012 15:12 To: users@sling.apache.org Subject: RE: Sling content location using maven-launchpad-plugin:start Hi James, > -Or

RE: Sling content location using maven-launchpad-plugin:start

2012-06-26 Thread Robert Munteanu
Hi James, > -Original Message- > From: Phillpotts, James [mailto:james.phillpo...@experian.com] > Sent: Tuesday, June 26, 2012 5:06 PM > To: users@sling.apache.org > Subject: Sling content location using maven-launchpad-plugin:start > > Hi all, > > I'm using the maven-launchpad-plugin to

Sling content location using maven-launchpad-plugin:start

2012-06-26 Thread Phillpotts, James
Hi all, I'm using the maven-launchpad-plugin to run sling while I perform some cucumber tests against it. This works fine until I try to re-run the build a subsequent time, because some of the leftovers from the last run is left in the $PWD/sling directory. Even if I do mvn clean integration-test

Re: How to debug adapterfactory?

2012-06-26 Thread Felix Meschberger
Hi, Am 26.06.2012 um 13:17 schrieb Robert A. Decker: > Thanks for the help. I figured it out. > > It as because I declared my adapter factory service like: > > @Component(metatype = false, immediate = true, label = "Brainsciences > Facebook Adapter Factory") > @Service(FacebookAdapterFactory.

Re: How to debug adapterfactory?

2012-06-26 Thread Robert A. Decker
Thanks for the help. I figured it out. It as because I declared my adapter factory service like: @Component(metatype = false, immediate = true, label = "Brainsciences Facebook Adapter Factory") @Service(FacebookAdapterFactory.class) public class FacebookAdapterFactory implements AdapterFactory

Re: How to debug adapterfactory?

2012-06-26 Thread Felix Meschberger
Hi Am 26.06.2012 um 00:34 schrieb Robert A. Decker: > Hi, > > I've written an AdapterFactory that appears to be set up correctly. It shows > up in my services and has adaptables and adapters. And when I look under the > System Console 'Sling Adapters' tab it shows up as well with the proper >