Hi Sam,
On Jun 27, 2012 3:56 PM, "sam ”" wrote:
>
> Thanks Justin.
> Works well!
Glad to hear.
>
> =8<=
>@Override
>public Resource decorate(Resource resource, HttpServletRequest request)
> {
>final String resourceType = resource.getResourceType();
>if ("old/handler".equ
Thanks Justin.
Works well!
=8<=
@Override
public Resource decorate(Resource resource, HttpServletRequest request)
{
final String resourceType = resource.getResourceType();
if ("old/handler".equals(resourceType)) {
return new ResourceWrapper(resource) {
Hi Sam,
ResoureDecorators must be registered add OSGi services.
Justin
On Jun 27, 2012 3:00 PM, "sam ”" wrote:
> Ah thanks.
>
> Is there a way to provide ResourceDecorator implementation in script (jsp)?
> Or, do I have to provide OSGi bundle/component?
>
>
> On Wed, Jun 27, 2012 at 2:34 PM, Jus
Ah thanks.
Is there a way to provide ResourceDecorator implementation in script (jsp)?
Or, do I have to provide OSGi bundle/component?
On Wed, Jun 27, 2012 at 2:34 PM, Justin Edelson wrote:
> Hi Sam,
> You should be able to do this with a ResourceDecorator service to change
> the resource type
Hi Sam,
You should be able to do this with a ResourceDecorator service to change
the resource type at runtime.
Regards,
Justin
On Jun 27, 2012 2:25 PM, "sam ”" wrote:
> Hey,
>
> I have a large number of resources with sling:resourceType = old/handler
>
> I don't want to modify their sling:resou
Hey,
I have a large number of resources with sling:resourceType = old/handler
I don't want to modify their sling:resourceType property. But, I want to
have old/handler actually resolve to /apps/new/handler
For example, given a resource:
/content/mypage
whose sling:resourceType = old/hander,
G
Hi Justin
Thanks for your reply, having true makes sense.
However I'm having a new problem when setting this option. I'm getting the
following error:
[ERROR] Failed to execute goal
org.apache.sling:maven-launchpad-plugin:2.1.1-SNAPSHOT:prepare-package
(prepare-package) on project sample-jar: Unab