Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all 12476 articles
Browse latest View live

XML schema for repository nodes (.content.xml)


how to determine Dispatcher is working with CQ5 Publish instance.?

$
0
0

Hi all create author and publish instance for CQ5 site, when author modify any content over the site these are replicated on publish instance successfully, now i want to use dispatcher so for this i have configured that with publish instance in IIS as described in the article  CQ Dispatcher IIS Set Up - CQ Tutorials. now i want to check Dispatcher is working or not for publish instance. and what it is doing for CQ5 publish instance

ETX Character in jcr:description property

$
0
0

We aren't sure how, but in a few of our pages using CQ5.4, the jcr:description field (when viewed in CRXDE Lite) contains the ASCII ETX character. This character is not visible in OSX Lion, but it can be seen in Windows and maybe older versions of OSX.

 

An example of our jcr:description:

"The Nike USATF Collection is a modern mix  of vintage classics infused with military aesthetic."

 

When we copy paste the description and put it into CRXDE or a different textbox like the CRXDE Lite path box or in Chrome address bar:

"The Nike USATF Collection is a modern mix ^C of vintage classics infused with military aesthetic."

 

Note the ^C above is where the ETX character is being placed.

 

Has anyone ever experienced this issue before? It is breaking our endecca indexing at the moment on certain pages with this issue. Thanks.

 

Edit: The code that is breaking is actually the JCR API which our search team is using to gather the data.

html5smartimage not working in a scaffolding

$
0
0

When I use html5smartimage or html5smartfile in a scaffolding or a panel it is not working properly.  First, it fails to show the upload / drag and drop functionality.  The area where this should be is blank.  Secondly, if the page the scaffolding belongs to has an image, it does not show in the image box, unless I remove the requestSuffix parameter from the html5smartimage properties.

 

I have combed through the SmartFile and SmartImage js files with little success.  Anyone have any ideas on how to fix this CQ bug?

Only a type can be imported. org.apache.felix.scr.annotations.Component resolves to a package

$
0
0

I copied the example code exactly, but it won't compile. I receive errors on all the annotations, like:

"Only a type can be imported. org.apache.felix.scr.annotations.Component resolves to a package"

and

"Component cannot be resolved to a type"


-------------------------------------------------------------------------

package com.day.cq.wcm.apps.geometrixx.impl;


import com.day.cq.workflow.WorkflowException;

import com.day.cq.workflow.WorkflowSession;

import com.day.cq.workflow.exec.WorkItem;

import com.day.cq.workflow.exec.WorkflowData;

import com.day.cq.workflow.exec.WorkflowProcess;

import com.day.cq.workflow.metadata.MetaDataMap;

import org.apache.felix.scr.annotations.Component;

import org.apache.felix.scr.annotations.Properties;

import org.apache.felix.scr.annotations.Property;

import org.apache.felix.scr.annotations.Service;

import org.osgi.framework.Constants;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;


import javax.jcr.Node;

import javax.jcr.RepositoryException;


/**

* Sample workflow process

*/

@Component

@Service

@Properties({

@Property(name = Constants.SERVICE_DESCRIPTION, value = "A sample workflow process implementation."),

@Property(name = "process.label", value = "Sample Workflow Process")})


public class CustomWorkflow implements WorkflowProcess {


private static final String TYPE_JCR_PATH = "JCR_PATH";

private static final Logger log = LoggerFactory.getLogger(CustomWorkflow.class);


public void execute(WorkItem item, WorkflowSession session, MetaDataMap args) throws WorkflowException {

WorkflowData workflowData = item.getWorkflowData();

if (workflowData.getPayloadType().equals(TYPE_JCR_PATH)) {

String path = workflowData.getPayload().toString();

// More code here

}

}


}

 

Errors :

 

DescriptionResourcePath
Component cannot be resolved to a type.java/li
Only a type can be imported. org.apache.felix.scr.annotations.Component resolves to a package.java/li
Properties cannot be resolved to a type.java/l
Service cannot be resolved to a type.java


Form-Global Constraints

$
0
0

I want to validate a user sign-up form when the entire form is submitted. Un-like most of the OOB form components, I want my error message to show at the top of the form not at the position of the component. After some reading, I am thinking maybe using the Form-Global Constraints by setting the Validation Resource Type path (http://dev.day.com/docs/en/cq/current/developing/developing-forms.html).

 

I have created a folder called validation in /apps/myApps/forms. I have created a JSP called servervalidation.jsp in the folder and  I have added the following code:

 

<%@page session="false" %><%

%><%@page import="java.text.SimpleDateFormat,

                java.util.Date,

                java.text.DateFormat,

                java.text.ParsePosition,

                com.day.cq.wcm.foundation.forms.FieldDescription,

                com.day.cq.wcm.foundation.forms.FieldHelper,

                com.day.cq.wcm.foundation.forms.ValidationInfo" %>

<%

%><%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0" %><%

%><sling:defineObjects/>

<%

    ValidationInfo.addConstraintError(slingRequest, "ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR ERROR"); 

    return;

%>

 

However, whenever I submit a form, no validation happens and the form just submits and redirects to the thank you page.

 

What am I doing wrong?

Redirecting page

$
0
0

I am using the redirect option in page properties to redirect pages but the page just displays

"This page redirects to <Page Name>" in publisher mode.

 

Why is it not working?

CRXDE and CQ5.2 connection problems

$
0
0

Hi all, I'm sure this is a pathetically easy question but I'm a noob and struggling getting started. The company I am working with has CQ5.2 which (apparently) does not CRXDE Lite available for development. I am on a Mac (OSX Mountain Lion). I thought CRXDE would be the answer but I have fallen at the first hurdle. I have the URL of the development instance of the site but CRXDE will not connect and generates the error: "Error initializing workspace: Error during IDE initialization".

 

The reason I'm asking the question is that I don't know if this is a mismatch between CRX version and CRXDE, a Mac issue, or is it that CQ5.2 is out of date etc?

 

For brevity, my set-up is as follows:

CRX 1.4.2

CQ5.2

OSX Mountain Lion (10.8.2)

CRXDE 1.0.1

 

Where am I going wrong? Any help will be massively appreciated.


datepicker in CQ5

$
0
0

Hi,

can anyone help me in using the datepicker in cq5? how to use it in dialog ?

 

any informaion will be helpful,

 

Thanks in advance

Does CQ provide a valid example of reverse replication for forms?

$
0
0

I am not talking about this:

http://helpx.adobe.com/cq/kb/HowToUseReverseReplication.html

and not this:

http://mkalugin-cq.blogspot.com/2012/02/reverse-replication-woes-solved.html

 

They work for polls and comments, but they don't seem to be working for forms. As far as I understand, the default servlet for forms creates a "sling:Folder" as a data container, under which all form values are set into properties. However, polls and comments are created as an entity(or node) under a container. A working example for comment is under "/content/usergenerated/content/geometrixx/en/blog/2009/02/shapecon_2009_inveg". All essential properties such as "cq:distribute", "cq:lastModified" are set correctly under this node. I tried to copy the idea of this example, but it never works for me.

 

Here's how I did.

1. I need to make a node as a "cq:Page", since reverse replication only works for this primary type. Let's name it "Page-1"

2. Create a "jcr:content" node under this node, make it as "cq:PageContent". I also set resourceType and template in "jcr:content". I need to make "Page-1" as a content page.

3. Create a data container under "cq:Page" node, make it "nt:unstructured". Let's name it "form_container". All form values are set into properties in this node. set "cq:lastModified", "cq:lastModifiedBy" and "cq:distribute" under this node.

4. Create a "jcr:content" node under "form_container", make it "nt:structured", set "cq:lastModified", "cq:lastModifiedBy" and "cq:distribute" under this node.

 

Obviously CQ doesn't know what I did and refuses to reverse replicate. Any help will greatly appreciate.

 

A finished upload will look like this:

 

/content

    /usergenerated

        /newsevent [cq:Page]

            /1351359963325_1 [cq:Page]

                |

                + form_content [cq:PageContent, cq:distribute==>true, and all form values stored as properties]

                |

                -- jrc:content [cq:distribute==> true, cq:lastModified==>Date Instance, cq:lastModifiedBy==>admin]

 

Kevin

segmentation.segment.js

$
0
0

I find that every time when I load a page (even in geometrixx), a js called "segmentation.segment.js" will be loaded.

 

 

Is it a must or how can I remove it as it takes few sec to load it in my enviornment?

QueryBuilder builder getting null

$
0
0

Hi

 

I was tried

 

......................................................

 

/**

* This class is an example ,Create selected users under a group

***/

@Component

@Service

@Properties({

        @Property(name = Constants.SERVICE_DESCRIPTION, value = "A sample workflow to sync image b/w servers."),

        @Property(name = Constants.SERVICE_VENDOR, value = "Adobe"),

        @Property(name = "process.label", value = "DAM Image SYNC with Image Server")})

 

public class ImageSync implements WorkflowProcess {

 

     @Reference

           private QueryBuilder builder;

 

           private static final Logger log = LoggerFactory.getLogger(ImageSync.class);

 

          public void execute(WorkItem item, WorkflowSession wsession, MetaDataMap metaData)

                              throws WorkflowException {

                    try{

                    // TODO Auto-generated method stub

 

                              //QueryBuilder builder = resource.getResourceResolver().adaptTo(QueryBuilder.class);

                              Session session = wsession.getSession();

                              Map<String, String> map = new HashMap<String,String>();

 

            map.put("path", "/content/dam/geometrixx");

                  map.put("type", "dam:Asset");

 

                  Query query = builder.createQuery(PredicateGroup.create(map), session);

 

                  //query.setStart(0);

                  //query.setHitsPerPage(20);

 

 

                  SearchResult result = query.getResult();

 

                  Iterator<Node> itr = result.getNodes();

 

                  while(itr.hasNext()){

                            Node node = itr.next();

                            log.info("Node Name : "+node.getName() +"- Path :"+node.getPath());

                  }

                  wsession.complete(item, wsession.getRoutes(item).get(0));

 

                    }catch (Exception e) {

                              // TODO: handle exception

                              log.error("Exceptions @@@ "+e.getMessage());

                    }

          }

 

 

}

 

 

Issue 1 :

 

If i use 

 

    @Reference

     private QueryBuilder builder;

Exceptions :

 

com.day.cq.workflow.impl.job.JobHandler Process implementation not found: com.test.ImageSync

 

Issue 2 :

 

If i use

 

     /**@scr.reference*/

     private QueryBuilder builder;

 

Exception :

[JobHandler: /etc/workflow/instances/2012-11-16/model_12901374305856:/content/fr] com.test.ImageSync Exceptions @@@ null

 

 

Can any one help , How can i use annotations for the Query Builder

How to remove the blue border line of dialogfieldset

$
0
0

Hi

  

 

     How can we remove the border line of dialogfieldset. I have tried using container instead , but it wont render the fieldLabels. Any help would be appreciable

 

 

Thanks

 

Veena

Does CQ5 support XML dita?

Client context error message while configuring for social login and personalization

$
0
0

Hi,

 

I am getting the below exception while configuring for social login and personalization.

 

27.12.2012 11:21:25.463 *ERROR* [127.0.0.1 [1356587485463] GET /etc/cloudservices/facebookconnect/sample_fb.login.html/callback/connect HTTP/1.1] com.day.cq.wcm.core.impl.designer.DesignerImpl No design at /etc/design/cloudservices. Using default.

27.12.2012 11:21:46.549 *ERROR* [127.0.0.1 [1356587485463] GET /etc/cloudservices/facebookconnect/sample_fb.login.html/callback/connect HTTP/1.1] com.adobe.granite.auth.oauth.impl.oauth2.Oauth2Helper Problems while creating connection.

27.12.2012 11:21:46.549 *WARN* [127.0.0.1 [1356587485463] GET /etc/cloudservices/facebookconnect/sample_fb.login.html/callback/connect HTTP/1.1] com.adobe.granite.auth.oauth.impl.oauth2.Oauth2Helper token was null or not in UNAUTHORIZED state:1

27.12.2012 11:21:46.549 *ERROR* [127.0.0.1 [1356587485463] GET /etc/cloudservices/facebookconnect/sample_fb.login.html/callback/connect HTTP/1.1] com.adobe.granite.auth.oauth.impl.servlet.OAuthProfileImportServlet requestAccessToken: could not retrieve user

27.12.2012 11:21:46.549 *ERROR* [127.0.0.1 [1356587506549] GET /etc/cloudservices/facebookconnect/sample_fb.login.html HTTP/1.1] com.day.cq.wcm.core.impl.designer.DesignerImpl No design at /etc/design/cloudservices. Using default.

27.12.2012 11:21:48.455 *ERROR* [127.0.0.1 [1356587508455] GET /etc/clientcontext/default/contextstores/profiledata/loader.json HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException org.apache.sling.api.SlingException: An exception occurred processing JSP page /libs/cq/personalization/components/profileloader/command/load/load.json.jsp at line 41

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:574)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:499)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:451)

at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)

 

Thanks,

 

Shankar .A


Caching at component level

$
0
0

Hi, I read the following forum post: http://forums.adobe.com/message/4296426, like to get confirmation that this is how we need to implement our solution.

 

This is the problem: we have a component that displays a link to Vimeo if the user is logged in, and a link to the login screen if not logged in. The page needs to be cached for performance reasons. Now the problem is that if the page is cached, the link displayed is also cached, so doesn't change depending hte user.

 

We're using Adobe CQ authentication.

 

Is there a way to make the content behind the link non-cached?

 

Any feedback really appreciated.

Error: No renderer for extension png

$
0
0

content is not appearing in the publish instance. The Publish error.log has this message for all the resources

Here's a snippet of the error log

 

/content/asthmastudy/en/welcome.navimage.png HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension png, cannot render resource JcrNodeResource, type=gskstudy/components/page/contentpage, superType=null, path=/content/asthmastudy/en/welcome/jcr:content

29.01.2013 10:33:22.752 *ERROR* [10.10.0.14 [1359473602752] GET /content/asthmastudy/en/about.navimage.png HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension png, cannot render resource JcrNodeResource, type=gskstudy/components/page/contentpage, superType=null, path=/content/asthmastudy/en/about/jcr:content

29.01.2013 10:33:22.752 *ERROR* [10.10.0.14 [1359473602752] GET /content/asthmastudy/en/participants.navimage.png HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension png, cannot render resource JcrNodeResource, type=gskstudy/components/page/contentpage, superType=null, path=/content/asthmastudy/en/participants/jcr:content

29.01.2013 10:33:22.752 *ERROR* [10.10.0.14 [1359473602752] GET /content/asthmastudy/en/locations.navimage.png HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension png, cannot render resource JcrNodeResource, type=gskstudy/components/page/contentpage, superType=null, path=/content/asthmastudy/en/locations/jcr:content

29.01.2013 10:33:22.752 *ERROR* [10.10.0.14 [1359473602752] GET /content/asthmastudy/en/aboutdisease.navimage

 

I've activated a numbe of branches on the tree to the publish instance.

 

What would cause this error to appear?

 

ltemplin

Purpose of the static.css file?

$
0
0

Hello,

 

I'm trying to get to know how designs work in CQ5.

I've noticed that if I have CSS files in the clientlibs folder which has a categories property set in a design then I can include these CSS files by calling <cq:includeClientLib categories="category_name" /> in the head.jsp of my page component.

 

Example:

/etc

     /designs

          /demo

               /clientlibs     (categories = "demo")

                    /css

                         /style.css

                    /css.txt


Now if I copy the design and change some CSS settings then both clientlibs folders are included, because both have "demo" as the value of the categories property.

 

Generated HTML-code:

<link rel="stylesheet" href="/etc/designs/demo 2/clientlibs.css" type="text/css">

<link rel="stylesheet" href="/etc/designs/demo/clientlibs.css" type="text/css">

 

This is a problem if I want a website where the author can choose a design over the page properties.

While examining the Geometrixx project I noticed that "static.css" is being used for designs.

Unfortunately I was not able to find a description about what purpose "static.css" is supposed to have in CQ5.


What I would like to know:

What's the puprose of static.css?

Is the static.css file used in CQ5 for other things than just page styling?

Are there any 'best practices' I should look into?

How do I add a static image to a CQ5 component?

$
0
0

Hi all,

 

I'm pretty new to CQ5 and still getting my head around how everything hooks up.  I'm trying to make a component.  It is a panel containing two panels side by side and I would like to show a static image inside one of the panels.  The image can be hardcoded and I don't need/want the functionality of the smartimage widget. How can I do this?

 

Thanks!

"Create Version" Workflow Process

$
0
0

hi guys,

have anyone tried to create more versions than one using Create Version process in Workflow?

 

It is funny but it's works only once - when I run the workflow once again, then I get the exception that the name is emplty:

 

com.day.cq.workflow.impl.job.JobHandler Process execution resulted in an error: java.lang.IllegalArgumentException: Unable to resolve label: org.apache.jackrabbit.spi.commons.conversion.IllegalNameException: empty name com.day.cq.workflow.WorkflowException: java.lang.IllegalArgumentException: Unable to resolve label: org.apache.jackrabbit.spi.commons.conversion.IllegalNameException: empty name

 

It is funny because it sould create a name automatically, i.e. 2.0 or 1.1..

 

it is a BUG?

Viewing all 12476 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>