On Wed, Feb 27, 2008 at 4:46 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote:
> ... I am confused. We decided to provide JavaScript-like API, that is JCR > node properties are properties of the JavaScript Node object, thus the > sling:resourceType property would be accessed as > child["sling:resourceType"]. Therefore, I do not see a need for > Node.getProperty(String), but then we might just as well add them ... I think so, for consistency's sake. And IIUC Michael's missing getNodes(String namePattern) which is not the same as enumerating a javascript array. > ... But then, we should probably add each and every method defined in the > Node and Property (and Item) interfaces to the wrappers .... Agreed, that's the goal of SLING-154. But last time I looked I had some problems with collections not being properly converted to wrappers, I'll try to find some time to have another look. -Bertrand
