Re: Possible sling JSONObject bug

2009-06-05 Thread D. Stuart Freeman
OK, in that case it sounds like comparing the results of toString() should suffice for my purposes. On Fri, Jun 05, 2009 at 09:18:05PM +0200, Alexander Klimetschek wrote: > I think they are not equivalent in the strict Javascript sense, as the > order of the properties in an object is defined (y

Re: Possible sling JSONObject bug

2009-06-05 Thread Alexander Klimetschek
I think they are not equivalent in the strict Javascript sense, as the order of the properties in an object is defined (you can iterate over it). It is not to be seen as a pure hash map. Regards, Alex -- Alexander Klimetschek @iPhone Am 05.06.2009 um 21:00 schrieb "D. Stuart Freeman" >:

Re: Possible sling JSONObject bug

2009-06-05 Thread D. Stuart Freeman
In the example I do both a toString() comparison and an Object comparison to show that it doesn't work. The problem is that in the current setup is as follows: JSONObject j = new JSONObject("{a:a, b:b}"); JSONObject j = new JSONObject("{b:b, a:a}"); There's no easy way to find out these are func

Re: Openid integration for Sling 3

2009-06-05 Thread Felix Meschberger
Hi Tanmay, Tanmay Barman schrieb: > I was trying to integrate openid in my project that is based on sling 3. I > was trying with openid4java api. But I am having the following error > > java.lang.NoClassDefFoundError: > org/apache/commons/httpclient/methods/RequestEntity > at > org.apache.

Re: Exposing DB Data

2009-06-05 Thread Felix Meschberger
Hi Andreas, Andreas Kollegger schrieb: > Hi, > > I'd like to expose data stored in an external database as resource nodes > in Sling. Access to the database is already wrapped in an OSGi service > (MyService.java), and there is a Java model for the data (MyModel.java). > From what I can understan

[jira] Resolved: (SLING-977) Add Events to the UserManager Post Servlets

2009-06-05 Thread Ian Boston (JIRA)
[ https://issues.apache.org/jira/browse/SLING-977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ian Boston resolved SLING-977. -- Resolution: Invalid The same effect can be achieved using a SlingPostProcessor attached to the Usermana

Re: Possible sling JSONObject bug

2009-06-05 Thread John Crawford
Well in you're example you used toString() before comparing. Sent from my iPhone On Jun 5, 2009, at 12:14 PM, "D. Stuart Freeman" > wrote: I just realized this is because JSONObject doesn't override equals. Maybe it should? On Fri, Jun 05, 2009 at 01:10:30PM -0400, D. Stuart Freeman wrote:

Re: Possible sling JSONObject bug

2009-06-05 Thread D. Stuart Freeman
I just realized this is because JSONObject doesn't override equals. Maybe it should? On Fri, Jun 05, 2009 at 01:10:30PM -0400, D. Stuart Freeman wrote: > Should it hold that if we have two JSONObjects, j and k, that if > j.toString().equals(k.toString()) then j.equals(k)? I ask because I've > fou

Possible sling JSONObject bug

2009-06-05 Thread D. Stuart Freeman
Should it hold that if we have two JSONObjects, j and k, that if j.toString().equals(k.toString()) then j.equals(k)? I ask because I've found that it's possible to create JSONObjects where that isn't the case. Here's a quick, minimal example I worked up: http://pastebin.com/f12de25b9 -- D. Stuar

[jira] Updated: (SLING-995) resource types for users are sling:users in some places and sling/users in others.

2009-06-05 Thread Ian Boston (JIRA)
[ https://issues.apache.org/jira/browse/SLING-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ian Boston updated SLING-995: - Attachment: SLING-995.patch I m not 100% certain about this, as there might be a : to / translation somew

[jira] Created: (SLING-995) resource types for users are sling:users in some places and sling/users in others.

2009-06-05 Thread Ian Boston (JIRA)
resource types for users are sling:users in some places and sling/users in others. -- Key: SLING-995 URL: https://issues.apache.org/jira/browse/SLING-995 Project: Sling

Sling configuration

2009-06-05 Thread Claude Vedovini
Hi all, I use the sling web app on jBoss and I have issue with the location of the sling home folder. >From what I read in [1] it seems one can setup the sling.home property either using the sling.property or the web.xml file, both located inside the sling war file, am I right? If so, how may I