Using Solr or elasticsearch

2014-08-26 Thread Roy Teeuwen
Has anyone managed to use Solr instead of lucene yet in sling (or even elasticsearch or anything)? I have found this gsoc https://issues.apache.org/jira/browse/SLING-2795 but no news on it since last year april. Cheers, Roy

How to reindex lucene

2016-01-06 Thread Roy Teeuwen
I am having a problem with my lucene index, it is throwing the exception shown in the logs below. Last time I got this solved by setting the reindex property on true for the oak:index/lucene but now my system is so slow because it throws the exception so many times per second that I can't even get

Re: How to reindex lucene

2016-01-06 Thread Roy Teeuwen
expected, you will see that the folder > /opt/aem_author/crx-quickstart/repository/index is recreated and the > log messages disappear. If this is not the case, please report back > with your observations. > > Hope this helps. > > Regards > Julian > > > On Wed, J

Re: How to reindex lucene

2016-01-06 Thread Roy Teeuwen
Hey Chetan, It’s a SegmentMK and Oak is 1.0.22 (AEM 6.0 SP3). Greets Roy > On 06 Jan 2016, at 13:09, chetan mehrotra [via Apache Sling] > wrote: > > On Wed, Jan 6, 2016 at 5:28 PM, Roy Teeuwen <[hidden email] > > wrote: > > Shall I put this on the mail

Re: How to reindex lucene

2016-01-06 Thread Roy Teeuwen
04>. I don't know which Oak > version you are running, compare to the issue's fix version. If you > are running a "fixed" version, please report the issue on the Oak > list. Thanks. > > Regards > Julian > > > On Wed, Jan 6, 2016 at 12:58 PM,

Re: How to reindex lucene

2016-01-06 Thread Roy Teeuwen
/browse/OAK-3504>. I don't know which Oak > >> version you are running, compare to the issue's fix version. If you > >> are running a "fixed" version, please report the issue on the Oak > >> list. Thanks. > >> > >> Regards &g

Sorting of a JCR Query

2016-03-02 Thread Roy Teeuwen
Hello all, I have a node A with subnodes B,C,D and am creating a JCR query to retrieve some of the subnodes by using the following XPATH query: /jcr:root/A//element(*, nt:unstructured) [ jcr:contains(property, ‘value’) ] The problem that I am facing at this moment that the order it retr

Re: Sorting of a JCR Query

2016-03-03 Thread Roy Teeuwen
gt; } > > In other words: query results don't know about the sibling order of nodes. > > Regards > Julian > > > > On Wed, Mar 2, 2016 at 7:13 PM, Roy Teeuwen wrote: >> Hello all, >> >> I have a node A with subnodes B,C,D and am creating a

JCR Namespace prefix

2016-04-06 Thread Roy Teeuwen
Hello all, I am currently trying to develop a sass compiler that will compile the sass files natively in Sling instead of using CSS files. The issue that I am facing at this moment though is that when I try to upload the sass files I get following exception: *ERROR* [qtp2101349382-74] org.apa

Re: JCR Namespace prefix

2016-04-06 Thread Roy Teeuwen
On Wed, 2016-04-06 at 09:57 +0200, Roy Teeuwen wrote: >> Hello all, >> >> I am currently trying to develop a sass compiler that will compile >> the sass files natively in Sling instead of using CSS files. The >> issue that I am facing at this moment though is that

Sling Events 4.0

2016-04-08 Thread Roy Teeuwen
Hey all, After upgrading to sling events 4.0, the EventUtil has disappeared. I have been using EventUtil.isLocal(event) throughout my codebase, and in the documentation of the deprecation it states that one should check if the property exists. Does this mean that it is enough to replace this ev

Exception when trying out the fling sample

2016-04-30 Thread Roy Teeuwen
Hello all, When navigating to fling.html after installing the fling samples I get following exception, any thought on what is going wrong? Parsing error in template /apps/fling/page/simple/html.html at line 20: extraneous input '(' expecting {'}', '.', '&&', '||', '[', '@'} for expression page=

Re: Exception when trying out the fling sample

2016-04-30 Thread Roy Teeuwen
configured service ranking of Thymeleaf, > as suggested in > https://sling.apache.org/documentation/bundles/scripting/scripting-thymeleaf.html > > <https://sling.apache.org/documentation/bundles/scripting/scripting-thymeleaf.html> > > Best, > Vlad > > On Saturday,

Re: Exception when trying out the fling sample

2016-05-01 Thread Roy Teeuwen
Hey Olivier, Thanks for the explanation! For me real the benefit would be that I could take a vanilla sling launchpad and install the project where I would add a config file making the thymeleaf engine a higher service ranking and it would all work without any manual action of the user in the s

Creating templates for primary types

2016-05-05 Thread Roy Teeuwen
Hello all, I have a question, how can you create templates that work on resources with a specific primary type instead of resource type? Thanks! Roy

Re: Creating templates for primary types

2016-05-05 Thread Roy Teeuwen
i Roy, >> >> On Thu, 2016-05-05 at 13:03 +0200, Roy Teeuwen wrote: >>> Hello all, >>> >>> I have a question, how can you create templates that work on >>> resources with a specific primary type instead of resource type? >>> >&g

Using the resource resolver

2016-06-14 Thread Roy Teeuwen
Hello all, I am wondering on the usage of the resource resolver and on how long it should stay open. Lets say I have the following implementation: @Component @Service(SomeService.class) public class SomeServiceImpl implements SomeService { @Reference private ResourceResolverFactory resourceRes

Re: Using the resource resolver

2016-06-14 Thread Roy Teeuwen
seen a problem with simply creating and closing a > resource resolver each time you need it. But the probably the best > solution is to pass the resolver in. > > And :) you should close the resource resolver in deactivate regardless > whether it is live or not. > > Regar

Re: Using the resource resolver

2016-06-15 Thread Roy Teeuwen
eturns true if this resource resolver has not been closed yet. Unlike the other methods defined in this interface, this method will never throw an exception even after the resource resolver has been closed. Greetings, Roy > On 15 Jun 2016, at 13:55, Carsten Ziegeler wrote: > > Roy Teeuw

Querying vs iterating

2016-06-16 Thread Roy Teeuwen
Hello all, Lets say I got a resource with around 10-20 child/grand-child resources, not going deeper than 3 levels max. What is the most performant when searching for the child resources containing a specific property (the property is configurable with OSGi, so hard to put an index on it). Iter

Re: Querying vs iterating

2016-06-16 Thread Roy Teeuwen
forming than XPath / JCR-SQL2 queries. > This is primarily from past experience speaking in that queries have > generally turned out (often MUCH) slower than directly iterating if you > know what you're actually looking for. > > > On Thu, Jun 16, 2016 at 10:28 PM,

Re: Querying vs iterating

2016-06-20 Thread Roy Teeuwen
ibutes/properties of your >> query) then using a query should be fine, otherwise iterate yourself" >> having any condition missing from the index can be fatal in >> performance, such as lacking the evaluatePathRestrictions = true, >> which without it is basically death of the s

Re: adaptTo() 2016 - Agenda published

2016-06-21 Thread Roy Teeuwen
Hey Stefan, Can’t wait for it ;) looks great! Greets Roy > On 21 Jun 2016, at 22:41, Stefan Seifert wrote: > > > We're proud to present this year's agenda http://adapt.to/schedule > > Luckily, there are still tickets available http://adapt.to/tickets > > #adaptTo > > Kind regards on behalf

Re: One Resource to multiple views in different locations

2016-07-13 Thread Roy Teeuwen
Hey Vkum, We had the exact same problem, two sites, siteA and siteB, where there was a livecopy from siteA to siteB, but siteB had some specific header and footer components and stuff like that. How we solved this is by creating a filter that went over the resources of the request and when we d

Re: One Resource to multiple views in different locations

2016-07-14 Thread Roy Teeuwen
Two components, as you can clearly see I said we have a component at /apps/siteA/components/header and /apps/siteB/components/header > On 14 Jul 2016, at 10:28, vkum14 wrote: > > Sounds good. One quick qns- did you have 2 components or one component since > you seem to be playing around with r

Re: One Resource to multiple views in different locations

2016-07-14 Thread Roy Teeuwen
ce upon, this information by persons or > entities other than the intended recipient is prohibited. If you received > this in error, please contact the sender and delete the material from any > computer. > > From: Roy Teeuwen [via Apache Sling] > [mailto:ml-node+s73963n4062546...

Re: One Resource to multiple views in different locations

2016-07-14 Thread Roy Teeuwen
Hey vkum, Sorry, but… All the info is right there in my previous mails. I’m not going to repeat myself 100 times. We solve it by overriding the resource type by using a filter that looks at the site name of the current resource. The resource type could be ANYWHERE in /apps /libs or whatever ex

Re: One Resource to multiple views in different locations

2016-07-16 Thread Roy Teeuwen
Hey Vkum, We use osgi configs per site for this :). We define per sitename the fallback roots (so that would in your example be site1 and if not available fall back to generic) Greets Roy > On 14 Jul 2016, at 14:48, vkum14 wrote: > > Hi Roy, > > My apology here if I asked the same informatio

Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
Hey all, I am creating a SlingServlet that will work by both using a selector and a suffix. The resource is for example /content/dam/image.jpg and the actual url will be /content/dam/nice-image.cdn.jpg/modification-date/20160815/nice-image.jpg What is the most easy way to get the actual resour

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
etResource().getPath() > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] > Sent: Thursday, July 28, 2016 12:31 PM > To: users@sling.apache.org > Subject: Getting the actual resource from a request > > Hey all, > > I am creating a SlingSer

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
etResource().getPath() > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] > Sent: Thursday, July 28, 2016 12:31 PM > To: users@sling.apache.org > Subject: Getting the actual resource from a request > > Hey all, > > I am creating a SlingServlet that will

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
k to return the original nice-image.jpg at that point it > should be easier to create a servlet that will have the resource as part of > the request. > > Or optionally you could try adding a sling:resourceType to the image and have > a selector within that resource type that does what

Re: Getting the actual resource from a request

2016-07-28 Thread Roy Teeuwen
Also lastly to combine with my previous mail, it doesn’t have to be only images. It could also be pdf’s, zips,… So the approach I am using now won’t work in all the cases I want :) > On 28 Jul 2016, at 23:44, Roy Teeuwen wrote: > > Hey Jason, Olivier, > > @Jason: > Damn

Re: Getting the actual resource from a request

2016-07-29 Thread Roy Teeuwen
be more performant/better. Thanks all, Greets Roy > On 29 Jul 2016, at 00:01, Roy Teeuwen wrote: > > Also lastly to combine with my previous mail, it doesn’t have to be only > images. It could also be pdf’s, zips,… So the approach I am using now won’t > work in all the case

Re: Getting the actual resource from a request

2016-07-29 Thread Roy Teeuwen
that does > caching. I could sit there and call that asset with a millisecond time stamp > and each time I did it, it would be cached, and the cache would get larger. > Until some point I have consumed all of your disk space. > > I'm assuming a similar type issue with cdn

Re: Getting the actual resource from a request

2016-07-30 Thread Roy Teeuwen
obe.com/content/dam/Adobe/images/shared/product_mnemonics/48x48/dreamweaver-no-shadow-48x48.png./test/another.jpg> It seems to make a new image in the dispatcher cache for every request. But I guess we would be on the wrong list to discuss something like this ;) Greets Roy > On 29 Jul 2016,

Re: Getting the actual resource from a request

2016-08-01 Thread Roy Teeuwen
n using a > cache. > > One solution might be a generic selector filter, one that can accept a list > of patterns to whitelist or blacklist. > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] > Sent: Saturday, July 30, 2016 6:58 AM > To: u

Sling models adaptTo taglib

2016-08-19 Thread Roy Teeuwen
Hello all, I am trying to use the sling models taglib, and I am using the following input: <%@ page import=“my.packages.TestModel" %> ${model.testString} But when doing this, I get the following exception: java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String

Re: Sling models adaptTo taglib

2016-08-19 Thread Roy Teeuwen
LING-5653 > > And it seems to be fixed. Not sure in which version it is included. > > Thanks > > > 2016-08-19 8:25 GMT-03:00 Roy Teeuwen : > >> Hello all, >> >> I am trying to use the sling models taglib, and I am using the following >> inpu

Re: Sling models adaptTo taglib

2016-08-20 Thread Roy Teeuwen
he JSP's from the OSGi console. > > Regards, > Dan > > On Fri, Aug 19, 2016 at 7:37 AM, Roy Teeuwen wrote: > >> Hey Júnior, >> >> Thanks! >> >> Darnit, it seems that I will have to wait until after the upgrade to AEM >> 6.2 ;). &

Re: Sling models adaptTo taglib

2016-08-22 Thread Roy Teeuwen
tly, which I admit, seems to be a difficult > thing to do. Then the version of the bundle is less important then the > package version of the api's that it exports. > > -Jason > > -Original Message- > From: Roy Teeuwen [mailto:r...@teeuwen.be] > Sent: Sa

Adding jcr:created date to resource

2016-09-20 Thread Roy Teeuwen
Hello all, I am trying to create an nt:unstructured resource programatically, which contains a jcr:created property, but I don’t seem to find a way to add this programatically, nor how to add a jcr:mixinType (which would make it possible). I tried the following, but it isn’t working: Resource

Authentication handler

2016-10-04 Thread Roy Teeuwen
Hey all, When starting up our sling instance, if you go to /system/console in the VERY beginning (like 1-3 seconds after doing a startup), it is possible to log in with admin/admin, even when the admin password has been changed to something else. What bundle has to come active for this hardcod

Re: Authentication handler

2016-10-04 Thread Roy Teeuwen
ory is not available for whatever reason. > > stefan > >> -Original Message- >> From: Roy Teeuwen [mailto:r...@teeuwen.be] >> Sent: Tuesday, October 4, 2016 4:45 PM >> To: users@sling.apache.org >> Subject: Authentication handler >> >&g

XPath Query

2016-10-10 Thread Roy Teeuwen
Hey all, I’m not really getting a reply in the oak-dev channel, so I might as well also try here because I’m trying it in a sling application :) When doing the following XPath query in JCR 2, it would select me all the nodes that has a subnode named test. But since upgrading to oak, this query

Re: XPath Query

2016-10-11 Thread Roy Teeuwen
was a bug or a feature). > > IMO you need to test for /jcr:root//*[fn:name() = 'test'] (or if there > are no other conditions simply /jcr:root//test). > > Regards > Julian > > > On Mon, Oct 10, 2016 at 1:14 PM, Roy Teeuwen wrote: >> Hey all, >> >

Re: XPath Query

2016-10-11 Thread Roy Teeuwen
rds > Julian > > > On Tue, Oct 11, 2016 at 1:44 PM, Roy Teeuwen wrote: >> Hey Julian, >> >> This is standard XPath and worked in JCR 2, for example if you look at these >> samples provided by microsoft: >> https://msdn.microsoft.com/en-us/library/ms256

Migrating from JSP to HTL/Sightly

2016-10-12 Thread Roy Teeuwen
Hey all, For one of our current projects, we are in the process of making all the new components/templates in HTL instead of JSP. One of the things we did notice though is that when we use a component as resourceSuperType that still uses jsp, that in those jsp files we use the following as stat

Re: Migrating from JSP to HTL/Sightly

2016-10-18 Thread Roy Teeuwen
workaround for this or should I register a bug. Greetings, Roy > On 12 Oct 2016, at 18:11, Roy Teeuwen wrote: > > Hey all, > > For one of our current projects, we are in the process of making all the new > components/templates in HTL instead of JSP. One of the things we did

Including attributes with Sightly/HTL

2016-10-28 Thread Roy Teeuwen
Hey all, When using HTL, how does one include attributes in a div when it’s coming from another script? In jsp we would be able to do it like the following: > This doesn’t seem possible in sightly in a way I can find? Greetings, Roy

Re: Including attributes with Sightly/HTL

2016-10-28 Thread Roy Teeuwen
To clarify further, because a part of the script was missng: I am doing > The following output is created (see the wrongly put sly tag): data-analytics-page-id=“page id" data-analytics-page-type=“page-type" Greetings, Roy > On 28 Oct 2016, at 13:39, Ro

Re: Including attributes with Sightly/HTL

2016-10-31 Thread Roy Teeuwen
f simply passing through/ignoring the fragments. > > Vlad > > On Fri, Oct 28, 2016 at 3:20 PM, Roy Teeuwen wrote: > >> To clarify further, because a part of the script was missng: >> >> I am doing > > The following >> output is created (se

Custom HTL attributes

2016-10-31 Thread Roy Teeuwen
Hello all, With the refactoring of the HTL bundle into multiple bundles and opening the API's, is it now yet possible to create custom HTL attributes, or is this still not feasible? Greetings, Roy

Creating a service user for your own bundle

2016-11-05 Thread Roy Teeuwen
Hey all, Seeing as it is now best practice to not use the getAdminResourceResolver anymore but go for the getServiceResourceResolver, what is the best way to have a bundle on it's own create the service user that belongs to the bundle. I know you can put the org.apache.sling.serviceusermapping

Re: Creating a service user for your own bundle

2016-11-06 Thread Roy Teeuwen
nsole plugin showing which bundles aren't satisfied Greetings, Roy > On 6 Nov 2016, at 09:51, Carsten Ziegeler wrote: > > Roy Teeuwen wrote >> Hey all, >> >> Seeing as it is now best practice to not use the getAdminResourceResolver >> anymore but go for

Re: Creating a service user for your own bundle

2016-11-07 Thread Roy Teeuwen
at he needs to do this, hence the need for the require capability. Greetings, Roy > On 7 Nov 2016, at 10:05, Oliver Lietz wrote: > > On Monday 07 November 2016 07:58:33 Carsten Ziegeler wrote: >> Roy Teeuwen wrote > > Hi Roy, > >>> Hey Carsten, >>&

Use of namespaces in node names

2016-11-13 Thread Roy Teeuwen
Hey all, Could anyone explain me what the benefit is of using node (or property) names that contain a namespace, instead of just using nodetypes to force rules on what can be placed on certain nodes? For example for the context aware config there has been chosen to call the node sling:settings

Re: Use of namespaces in node names

2016-11-14 Thread Roy Teeuwen
pes. > Namespaces and nodetypes are orthogonal. > > HTH, > Justin > > On Sun, Nov 13, 2016 at 3:16 PM Roy Teeuwen wrote: > >> Hey all, >> >> Could anyone explain me what the benefit is of using node (or property) >> names that contain a namespace, in

PAXExam vs Sling Teleporter (vs Sling Mocks)

2016-12-04 Thread Roy Teeuwen
Hello all, I have been going through the code base of Apache Sling and it is clear there are so many ways to test the code, you have two different bundles for PAX Exam (org.apache.sling.testing.paxexam and org.apache.sling.paxexam.util), you have the Teleporter and you also have the Sling Mocks

Getting the context path of the application

2016-12-09 Thread Roy Teeuwen
Hey all, I am trying to get the context path of the sling application somewhere where I don't have a HttpServletRequest at hand, so I cant call request.getContextPath(). More specifically I have a bug in a TransformerFactory that transforms links to versioned clientlibs (acs-aem-commons Versi

Re: Getting the context path of the application

2016-12-12 Thread Roy Teeuwen
:14, Roy Teeuwen wrote: > > Hey all, > > I am trying to get the context path of the sling application somewhere where > I don't have a HttpServletRequest at hand, so I cant call > request.getContextPath(). > > More specifically I have a bug in a TransformerFac

Re: Getting the context path of the application

2016-12-12 Thread Roy Teeuwen
ugh the init method of a servlet or by registering a > servlet context listener (assuming you use latest Sling which is using > the http whiteboard). > Other than those, I think there is no good way > > Regards > Carsten > > Roy Teeuwen wrote >> Hey all, >> >

Re: Getting the context path of the application

2016-12-12 Thread Roy Teeuwen
ct your TransformerFactory > to only be used as part of request processing anyway, right ? > > Regards > Felix > >> Am 12.12.2016 um 22:07 schrieb Roy Teeuwen : >> >> Hey Carsten, >> >> Ok cool, thanks for the info! Maybe it would be useful to a

Re: Getting the context path of the application

2016-12-13 Thread Roy Teeuwen
by the Felix Http Service Jetty > bundle. Having it as a command line option is merely a convenience. > > Regards > Felix > >> Am 13.12.2016 um 08:57 schrieb Roy Teeuwen : >> >> Hey Felix, >> >> Yeah, my problem has been resolved :)! Just thinking out

Using OSGi Mocks with OSGi DS annotations

2016-12-20 Thread Roy Teeuwen
Hey all, I am trying to use the osgi mocks in the following setup: @Component @Designate(ocd = ServiceImpl.Config.class) public class ServiceImpl implements Service { @ObjectClassDefinition @interface Config { String property() default "value"; } private Config confi

Re: Using OSGi Mocks with OSGi DS annotations

2016-12-21 Thread Roy Teeuwen
> > Hi Roy, > >> On Tue, 2016-12-20 at 23:03 +0100, Roy Teeuwen wrote: >> Hey all, >> >> I am trying to use the osgi mocks in the following setup: >> @Component >> @Designate(ocd = ServiceImpl.Config.class) >> public class ServiceImpl implements

Re: Using OSGi Mocks with OSGi DS annotations

2016-12-23 Thread Roy Teeuwen
version (e.g. > AEM 6.1). > > this talks lists the possible version matrix combinations > https://adapt.to/2016/en/schedule/unit-testing-with-sling-aem-mocks.html > > sefan > >> -Original Message- >> From: Roy Teeuwen [mailto:r...@teeuwen.be] >> Sent

Re: import and export JCR data

2017-01-06 Thread Roy Teeuwen
Hey Lance, I already gave you this answer on the jcr user list, don't know if you saw it because you haven't responded since... Seeing as you are going to use Sling, have you looked at Composum[1]. It has all the features you need from CRX, it makes packages, it has a repository browser, it ha

"Deadlock" when installing bundles

2017-01-26 Thread Roy Teeuwen
Hey all, We are in a situation where sometimes we have a deadlock when installing bundles. The routine we follow is the following: - We upload a vlt package that has a filter on /apps/myproject/install that removes all existing bundles (it has mode="replace"), it is called the cleanup package.

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-27 Thread Roy Teeuwen
Hey Lance, If you really want to use jax-rs, have a look at the following: https://github.com/apache/aries-jax-rs-whiteboard Greets, Roy > On 27 Jan 2017, at 23:29, lancedolan wrote: > > These APIs I'm looking to build are likely to use othe

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-28 Thread Roy Teeuwen
Hey Oli, Isnt that the whiteboard that I gave? https://github.com/apache/aries-jax-rs-whiteboard Greets Roy > On 28 Jan 2017, at 09:43, olimination wrote: > > Hi Lance, > > as Mike already mentioned the "Neba framework" offers you the full

Re: How to create Rest APIs for non-JCR data in Sling 8??

2017-01-28 Thread Roy Teeuwen
Hey Ben, I have to argue you on that one though. The short definition of Apache Sling from the main site, definitely look at point 1: Apache Sling in five bullets points • REST based web framework • Content-driven, using a JCR content repository • Powered by OSGi

Re: import and export JCR data

2017-02-07 Thread Roy Teeuwen
Hey, I'm not convinced that it is Composum related, if you check the code you can clearly see they use the jackrabbit-filevault api themselves[1], see the imports of the packages. U could debug that code, it's nothing fancy and I have used the package manager to export content nodes, see an ex

Re: Sling Resource Rendering Inheritance

2017-03-21 Thread Roy Teeuwen
Hey Andreas, I made an example package in sling-9, you can use composum to install the package. http://www12.zippyshare.com/v/nWrL1Azm/file.html It works for me, I made the following: /apps/idoneus/components/page => contains page.html and header.html which does a data-sly-include of header.

Re: Sling Resource Rendering Inheritance

2017-03-22 Thread Roy Teeuwen
; > I tried to download your example but I am not going to install > an Installer software just to see a ZIP file. > > Can you share this file by any other means? > > Thanks - Andy Schaefer > >> On Mar 21, 2017, at 9:52 PM, Roy Teeuwen wrote: >> >> Hey A

Re: Sling Resource Rendering Inheritance

2017-03-22 Thread Roy Teeuwen
ple but I am not going to install >>> an Installer software just to see a ZIP file. >>> >>> Can you share this file by any other means? >>> >>> Thanks - Andy Schaefer >>> >>>> On Mar 21, 2017, at 9:52 PM, Roy Teeuwen wrot

Re: Sling Resource Rendering Inheritance

2017-03-23 Thread Roy Teeuwen
> I used the sling sample Fling as an example but that does not use inheritance. > > Thanks for you swift help - Andy Schaefer > >> On Mar 22, 2017, at 11:05 AM, Roy Teeuwen wrote: >> >> Hey Andreas, >> >> Huh, I think you pushed the advertisement butto

Re: Sling Resource Rendering Inheritance

2017-03-23 Thread Roy Teeuwen
/apps. > > In AEM developers were told not to put anything under /libs and now Sling it > going > the other way. Is there a reason for this shift. As far as I know there’s no > difference. > > Thanks for all your help - Andy > >> On Mar 23, 2017, at 12:30 AM, Roy Teeu

Re: Fling Installation on Trunk

2017-04-01 Thread Roy Teeuwen
Hey Andreas, You can make your own custom launchpads with a maven project. In your pom.xml you use the following plugin: org.apache.sling slingstart-maven-plugin true Until sling 9 is released you use the following snapsh

Re: Different ways to define initial content :: Content.xml vs Json equivalent

2017-04-03 Thread Roy Teeuwen
Hey Andy, The license inside might not be good enough ;) Greets, Roy > On 3 Apr 2017, at 22:50, Andreas Schaefer wrote: > > Why is that necessary? The one from Adobe isn't good enough? > > - Andy Schaefer > >> On Apr 3, 2017, at 3:23 AM, Robert Munteanu wrote: >> >> Hi Greg, >> >>> On Sat,

Re: Different ways to define initial content :: Content.xml vs Json equivalent

2017-04-04 Thread Roy Teeuwen
er > >> On Apr 4, 2017, at 12:13 AM, Robert Munteanu wrote: >> >> On Tue, 2017-04-04 at 08:32 +0200, Roy Teeuwen wrote: >>> Hey Andy, >>> >>> The license inside might not be good enough ;) >>> >>> Greets, >>> Roy >>

Re: Different ways to define initial content :: Content.xml vs Json equivalent

2017-04-14 Thread Roy Teeuwen
oy >>> On 4 Apr 2017, at 17:28, Andreas Schaefer Sr. wrote: >>> >>> Yes, I was thinking that might be the issue. >>> >>> Do you guess have already something on Git? >>> >>> Thanks - Andy Schaefer >>> >>>> On Ap

Sling models - Resource decorator

2017-06-06 Thread Roy Teeuwen
Hey all, I am using sling models version 1.2.2, and I have the following logic: - I find some resources with the resource resolver (resourceResolver.findResources) - The returned resources are the correct resources which are decorated by my custom resource decorator - I iterate the list to cast

Re: Sling models - Resource decorator

2017-06-06 Thread Roy Teeuwen
rce you have it defined as: > > @Self > public Resource resource; > > and for the @Model you have something like > @Model(adaptables = RoysCustomDecorator.class) > > Am I close? > > -Jason > > -Original Message- > From: Roy Teeuwen [mailto:r..

Re: Sling models - Resource decorator

2017-06-12 Thread Roy Teeuwen
Hey Jason, Guys, No one can give me an answer if this is a bug or something wanted? I can always register a Jira ticket for and put it on the dev list of course Greets, Roy > On 6 Jun 2017, at 21:50, Roy Teeuwen wrote: > > Hey Jason, > > No to both assumptions > > -

Re: Sling models - Resource decorator

2017-06-12 Thread Roy Teeuwen
elson > wrote: > >> Hi Roy, >> This sounds like unexpected behavior. Please create a JIRA for this, >> ideally with a test case, if you have not already. >> >> Thanks, >> Justin >> >> On Mon, Jun 12, 2017 at 4:38 AM Roy Teeuwen wrote: &

Re: Sling models - Resource decorator

2017-06-12 Thread Roy Teeuwen
>} >} > > But this looks a bit odd to me, although I can't quite put my finger on why. > > Regards, > Justin > > On Mon, Jun 12, 2017 at 3:21 PM Roy Teeuwen wrote: > >> Hey Justin, >> >> Cool, thanks for the integration test! >>

Re: Sling models - Resource decorator

2017-06-12 Thread Roy Teeuwen
xtensions/models/integration-tests/src/main/java/org/apache/sling/models/it/services/TestResourceDecorator.java?view=markup > > That said, I agree that this is a bit intrusive. One idea could be to > change the implementation in ResourceWrapper to do what I'm describing all > the t

Running junit integration tests with login administrative

2017-08-28 Thread Roy Teeuwen
Hey all, I am trying to run integration tests based on the org.apache.sling.junit.core bundle. So far this always used to work, because I was able to use loginAdministrative, but now that this feature is disabled I can not do this anymore without providing a org.apache.sling.jcr.base.internal

Re: Running junit integration tests with login administrative

2017-08-29 Thread Roy Teeuwen
PID. the properties to be edited are passed as * a map of property name,value pairs. So I don't know if I can also actually add a new one with this method? Thanks, Roy > On 29 Aug 2017, at 12:40, Robert Munteanu wrote: > > Hi Roy, > > On Mon, 2017-08-28 at 14:44 +0200, Roy T

Re: Running junit integration tests with login administrative

2017-08-29 Thread Roy Teeuwen
Hey, Ok i will give it a try, cant seem to find any projects online that use the testing.clients bundle sadly enough. Thanks Roy > Op 29 aug. 2017 om 13:09 heeft Robert Munteanu het > volgende geschreven: > > > Hi Roy, > >> On Tue, 2017-08-29 at 13:06 +0200, R

New Resource Provider SPI - limitations

2017-09-14 Thread Roy Teeuwen
Hey all, We are currently upgrading our environment, and of course the new resource provider SPI is now available. But it seems that our current resource provider would not be able to be used in this new SPI, seeing as in the old one you could dynamically look if the resource provider could ret

Re: New Resource Provider SPI - limitations

2017-09-18 Thread Roy Teeuwen
er, your resource provider gets a context > which it can use to get a resource from a higher provider. So instead of > returning null you explicitely call the parent and return that result > from the parent. > > Regards > Carsten > > Roy Teeuwen wrote >> Hey all, &

Re: New Resource Provider SPI - limitations

2017-09-22 Thread Roy Teeuwen
sten Ziegeler wrote: > > Roy Teeuwen wrote >> Hey Carsten, >> >> Thanks for the info! It seems by the way that the current implementation >> actually even breaks Slin when still using the old ResourceProvider api. >> >> When you have for example a api.Re

File system resource provider - Performance

2017-09-25 Thread Roy Teeuwen
Hey all, We are using the file system resource provider to monitor a directory to be attached as resources. Currently in our directory we have around 5 levels deep with in total 200.000 files. The problem we are facing is that when our application starts up, it takes an unusual amount of time t

Re: File system resource provider - Performance

2017-09-29 Thread Roy Teeuwen
Hey Stefan, I was planning to give that a try too, could you maybe elaborate on what hick-ups you noticed on the different OSes? Greets Roy > On 29 Sep 2017, at 15:52, Stefan Seifert wrote: > > >> I think we could try using newer file features from Java 7 which might >> make the scanning obs

Re: File system resource provider - Performance

2017-09-29 Thread Roy Teeuwen
Hey Carsten, What about doing the initial scanning also async? As in that you do the initial scanning in the first scheduled run, without throwing change events for that first run Greets, Roy > On 29 Sep 2017, at 15:57, Carsten Ziegeler wrote: > > > > > Stefan Seifert wrote >> >>> I thin

Daily content sync between environments

2017-10-22 Thread Roy Teeuwen
r solution when going for the second part would be to expand the oak-migration tool to optionally specify which paths it should export based on a specific date property being larger/smaller than the one you pass as parameter Any opinions / suggestions on this are more than welcome. Greets, Roy T

Re: Daily content sync between environments

2017-10-23 Thread Roy Teeuwen
ndled in lots of ways, we might not > even use the vlt solution Robert proposed. For new content I think that > is something that will help us. > > > Regards, > > > On 23.10.2017 18:58, Robert Munteanu wrote: >> Hi Roy, >> >> On Sun, 2017-10-22 at 19:39 +0200

Re: [ANN] New Apache Sling PMC Chair: Robert Munteanu

2017-11-16 Thread Roy Teeuwen
Congratulations Robert! Greets, Roy > On 16 Nov 2017, at 15:25, Carsten Ziegeler wrote: > > Hi, > > it's my pleasure to announce that Robert took up the role as our new PMC > chair. > > Congrats Robert! > > Regards > Carsten > -- > Carsten Ziegeler > Adobe Research Switzerland > cziege...@ap

  1   2   >