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

Passing values from Form Component to Thank you page configured

$
0
0

Hello All,

 

I want to pass values from a page , having a CQ form component and on click of submit along with storing data in CQ, i would want to send the data to the "Thank you" page configured in the Form Component "Start of the form". Is there any best practice to pass the data to the Thank you page along with storing the data in CQ.

 

Kindly let me know.

 

Regards,

NZ


Change the default font of the richtext widget

$
0
0

I want to change the default look and feel of the content of richtext widget. I tried set the cls property when defining the widget, but it doesn't work. any idea?

 

thx

Trail version of CQ5

$
0
0

I want to get a trail version fro CQ5 , Is there any way to get It? Please any body can help me on this.CQ5 Trial

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

CQ5 quickstart fails to complete with launchpad failure

$
0
0

I am attempting to run the CQ5 quickstart by both double-clicking the jar (in my case, C:\tools\cq\demo\cq-wcm-quickstart-5.4.0.jar) and launching from command prompt (C:\tools\cq\demo>java -Xmx384M -jar cq-wcm-quickstart-5.4.0.jar). The launcher app eventually times out and displays "Server not ready, browser not launched".

 

The login page (http://localhost:4502/login.html) displays...

Service Unavailable

 

In the server.log, I see…

 

...28.11.2011 12:58:49 *MARK * webapp-CRX Launchpad Webapp: Start Filter 'CRXLaunchpadLicenseFilter'

28.11.2011 12:58:49 *MARK * webapp-CRX Launchpad Webapp: Start servlet 'sling'

28.11.2011 12:58:50 *ERROR* webapp-CRX Launchpad Webapp: ERROR: Error parsing system bundle export statement: org.osgi.framework; version=1.5, org.osgi.framework.hooks.service; version=1.0, org.osgi.framework.launch; version=1.0, org.osgi.service.packageadmin; version=1.2, org.osgi.service.startlevel; version=1.1, org.osgi.service.url; version=1.0, org.osgi.util.tracker;version="1.4", org.apache.sling.launchpad.api;version=1.0.0,  ,javax.servlet;javax.servlet.http;javax.servlet.resources; version=2.4 (java.lang.IllegalArgumentException: No paths specified in header: )

java.lang.IllegalArgumentException: No paths specified in header:

                at org.apache.felix.framework.util.manifestparser.ManifestParser.parseStandardHeaderClause(M anifestParser.java:1432)

                at org.apache.felix.framework.util.manifestparser.ManifestParser.parseStandardHeader(Manifes tParser.java:1400)

                at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java: 162)

                at org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:193)

                at org.apache.felix.framework.Felix.<init>(Felix.java:374)

                at org.apache.sling.launchpad.base.impl.SlingFelix.<init>(SlingFelix.java:39)

                at org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:235)

                at org.apache.sling.launchpad.base.webapp.SlingBridge.<init>(SlingBridge.java:41)

                at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.init(SlingServletDelegate.jav a:203)

                at javax.servlet.GenericServlet.init(GenericServlet.java:211)

                at org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:358)

                at org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:300)

                at org.apache.sling.launchpad.webapp.SlingServlet.init(SlingServlet.java:111)

                at javax.servlet.GenericServlet.init(GenericServlet.java:211)

                at com.day.j2ee.servletengine.ServletRuntimeEnvironment.doStart(ServletRuntimeEnvironment.ja va:113)

                at com.day.j2ee.servletengine.ServletRuntimeEnvironment.start(ServletRuntimeEnvironment.java :93)

                at com.day.j2ee.servletengine.WebApplication.loadStartupServlets(WebApplication.java:702)

                at com.day.j2ee.servletengine.WebApplication.start(WebApplication.java:631)

                at com.day.j2ee.servletengine.ServletContainer.start(ServletContainer.java:318)

                at com.day.j2ee.servletengine.ServletEngine.start(ServletEngine.java:285)

                at com.day.j2ee.server.Server.start(Server.java:227)

                at com.day.j2ee.server.Server.main(Server.java:607)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at com.day.launcher.Bootstrap.run(Bootstrap.java:118)

                at com.day.crx.quickstart.Quickstart.run(Quickstart.java:680)

                at com.day.crx.quickstart.Main.<init>(Main.java:675)

                at com.day.crx.quickstart.Main.main(Main.java:730)

28.11.2011 12:58:50 *ERROR* webapp-CRX Launchpad Webapp: ERROR: Error starting slinginstall:C:\tools\cq\demo\crx-quickstart\launchpad\startup\1\org.apache.felix.http.br idge-2.2.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.felix.http.bridge [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.servlet))

org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.felix.http.bridge [1]: Unable to resolve 1.0: missing requirement [1.0] package; (package=javax.servlet)

                at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)

                at org.apache.felix.framework.Felix.startBundle(Felix.java:1719)

                at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1148)

                at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)

                at java.lang.Thread.run(Unknown Source) ...

 

Then a bunch more errors "ERROR: Error starting slinginstall".


I’ve tried the “publisher” and “author” as well as the “generic” quick-start configurations and all fail the same way at the same spot.  Here is the sling.properties file:

 

#Overlay properties for configuration

#Mon Nov 28 14:26:17 PST 2011

org.apache.sling.commons.log.file.number=5

sling.installer.dir=${sling.home}/installer

sling.home=C\:\\tools\\cq\\demo\\crx-quickstart\\launchpad

ds.loglevel=warn

org.osgi.framework.system.packages=${osgi-core-packages}, ${osgi-compendium-services}, org.apache.sling.launchpad.api;version\=1.0.0, ${jre-${java.specification.version}} ${org.apache.sling.launcher.system.packages}

org.apache.sling.commons.log.file.size='.'yyyy-MM-dd

org.osgi.framework.bootdelegation=com.yourkit.*, ${org.apache.sling.launcher.bootdelegation}

felix.service.urlhandlers=true

org.osgi.framework.storage=${sling.home}/felix

org.osgi.framework.bundle.parent=framework

sling.ignoreSystemProperties=true

osgi-core-packages=org.osgi.framework; version\=1.5, org.osgi.framework.hooks.service; version\=1.0, org.osgi.framework.launch; version\=1.0, org.osgi.service.packageadmin; version\=1.2, org.osgi.service.startlevel; version\=1.1, org.osgi.service.url; version\=1.0

osgi-compendium-services=org.osgi.util.tracker;version\="1.4"

sling.context.default=default

ds.factory.enabled=true

org.apache.sling.commons.log.file=${sling.home}/logs/error.log

org.apache.sling.commons.log.level=INFO

org.apache.sling.launcher.system.packages=,javax.servlet;javax.servlet.http;javax.servlet. resources; version\=2.4

sling.bootdelegation.sun.reflect=sun.reflect

org.apache.felix.http.shared_servlet_context_attributes=true

obr.repository.url=http\://sling.apache.org/obr/repository.xml

org.osgi.framework.startlevel.beginning=30

felix.startlevel.bundle=20

felix.cm.dir=${sling.home}/config

 

A problem with my version of Java, maybe?

 

C:\tools\cq\demo>java -version

java version "1.7.0_01"

Java(TM) SE Runtime Environment (build 1.7.0_01-b08)

  Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing)

 

The crx (http://localhost:4502/crx) and cq admin (http://localhost:4502/admin) sites seem to work.  But, the launchpad (http://localhost:4502/bin/login.html or http://localhost:4502/system/console) doesn’t.

 

Thanks in advance for any help!

~rollo

Event listener when a particular field value changes in dialog

$
0
0

Hi there,  Issue is that I need to change a jcr property when a specific field value is changed in dialog. Since all the fileds are modified / rewriten in jcr when the dialog is saved, i can not identify the modification on a particular field.

403 forbidden and 404 not found on dispatcher

$
0
0

Hi people,

 

As I'm viewing pages on my dispatcher server I get 403/404 on some resources:

 

Failed to load resource: the server responded with a status of 404 (Not Found)

http://our.dispatcher.server/libs/cq/i18n/dict.en.json

 

Failed to load resource: the server responded with a status of 404 (Not Found)

http://our.dispatcher.server/libs/cq/security/userinfo.json?cq_ck=1373462597320

 

Failed to load resource: the server responded with a status of 403 (Forbidden)

http://our.dispatcher.server/libs/cq/ui/rte.js

 

Although I understand the 404s (I can let them pass in the .any file), I was wondering why would I need those on the dispatcher server?

 

As for the 403s, same remark: why do I need rte (rich text editor?) on the publish/dispatcher site? 

 

Thanks for any help.

 

JS.

How to Create a multiefield in CQ with custom type?

$
0
0

Please can anyone guide me to create a multiefield component with custom xtypes...


CQ Pages are not displayed?

$
0
0

hi..i am getting the welcome page but when i click on website to see the siteadmin page, it remain white blank and pages are not displayed.Please help me regarding this.

Minification/Obfuscation

$
0
0

We have a package with a stack of javascript containing ridiculously long variable names. We can't instruct the developers to rename their variables this late in the piece, so I'm hoping that we could leverage obfuscation, rather than just minification.

 

Incidently, minification can be turned on by navigating to {ServerURL}/system/console/configMgr, going to the Day CQ HTML Library Manager, and clicking on the Minify checkbox.

 

This would work well if it were whitespaces and comments causing the issue, but what we really need to get the file size down is to be able to compress by obfuscating the variable names.

 

Is there a config that I've missed somewhere, or does anyone know of a third party tool that we could use?

Disable Activate Blog Entry and force worflow

$
0
0

Is there a way to disable the "Activate Blog Entry" and force worflow to be selected instead, or just to get a better message when a Contributor tries to Activate Blog Entry, rather than the following what happens now:

 

I have removed Replication permissions for the user but instead of saying you can't activate when they click "Activate Blog Entry", I get an error message "Your request could not be completed because you have been signed out." and the the workflow tab says

 

 

List Component - Query

$
0
0

Hi all,

 

I have a list component and I have set up initial query in advance search, which generates the listing of the articles.

 

Now I am planning to add a search box and upon providing the new search text I would like to search again and utilizing same list component I would like to display new result list.

 

I looked a the init.jsp and found the place where I think it executes the initial query?

I tried to override source and query string but it is not taking an effect.  Also I am not able to find the jar for "com.day.cq.wcm.foundation.List", I wanted to decompile and wanted to see how querys are executed.

 

List list = new List(slingRequest, new PageFilter());

 

list.setQuery("Test");

list.setSource("search");

 

Any pointers would be helpful!

 

 

Thanks in advance.

CQ5 DAM : import of assets using WEBDAV

$
0
0

Hi,

 

I am trying to work on a POC where I need to do a buld asset upload using CQ5 webdav interface.

 

I tried configuring the Webdav in windows7 and windows 2008. But facing issue.

 

I followed below mentioned document for configuring Webdav with CQ5.

http://dev.day.com/docs/en/crx/current/how_to/webdav_access.html

 

I followed section : Setting up WebDAV for Windows for both Windows 7 and Windows 2008

 

Not able to configure Webdav for windows when I am trying to provide url (http://localhost:4502/crx/repository/crx.default or http://localhost:4502/content/dam) both of them are giving following error.

The folder you are entered does not appear to be a valid. please choose another.

 

Please suggest how to configure webdav in windows7 or windows 2008.

 

Thanks,

Sachin Srivastava

DAM not generating thumbnails

$
0
0

Hi,

 

When I try to upload images to digital assests interface in CQ5.5, it is uploading the file, but doesn't generate thumbnail image. I tried to check crx-quickstart/logs, but there is nothing logged in there. Could someone please help me what are other configurations/logs I need to check to find the cause of this thumbnail generation problem?

Radio Buttons

$
0
0

How to create a group of radio buttons in cq5.5


Publish to Staging and Production from the Authoring server

$
0
0

Hi,

 

Is it possible to configure CQ in such a way that, when the user activate a content, it will be publish to the Staging server.

And then the user can trigger a workflow in the same authoring server, and send the content to the production server?

 

 

Or is there any other way round?

Basically the user does not want to login into multiple CQ instance.

 

Thanks

Configuration Binding issues

$
0
0

Hi All,

 

 

I am creating a service, and supplying some default values for the configuration via properties. but when i am deploying the code - the configuration itself indicates unbound, until i save it and any changes i create a lost when i redeploy the bundle.

 

@Component(name = MyService.PROCESS_PID, description = "Custom Service", label = "Custom Service", metatype = true, configurationFactory = false, immediate = true)

@Service

@Properties({

                    @Property(name = "service.pid", value = MyService.PROCESS_PID),

                    @Property(name = "service.description", value = "Custom Service"),

                    @Property(name = MyService.PATHS, description = "Please add paths", label = "paths", value = "/content,/etc", cardinality = 10),

                    @Property(name = "service.vendor", value = "Adobe") })

 

 

public void activate(ComponentContext componentContext) {

                    log.info("Entering activate method.");

                    @SuppressWarnings("rawtypes")

                    Dictionary properties = componentContext.getProperties();

 

                    this.paths = MyUtil.convertToStringArray(properties

                                        .get(MyService.PATHS));

 

 

                    log.info("Exiting activate method.");

 

          }

 

I also see the activate method getting called, but i still see this issue

 

What am i missing here, Thanks in Advance

Setting access rights at component level

$
0
0

I have created a component. The business wants to restrict its use to a certain group of users.

 

If a user is part of that group, ONLY then the coomponent should be available in sidekick at time of page creation.

 

How is setting access rights at component level being achieved?

How to disable certain text fields in second tab based on the drop down selection from first tab?

$
0
0

My first tab contains a drop down menu which has two options

 

1. Personal info

2. Office info

 

The second tab contains all the information regarding Office and Personal Information. But I need to selectively disable certain fields based on the drop down in first tab.

 

For example,

 

The second tab consissts of all fields like

 

Name,

Age

Job title,

Office Location, etc.

 

And i dont want office related details to be displayed if I am selecting personal info in the first tab.

 

It would be really great if someone could send me the code for achieving this.

 

Thanks in advance.

Send Email Using CQ API and custom template

$
0
0

Is is possible to send email using CQ API and custom template.

 

If yes how can i pass template as Subject

 

http://blogs.adobe.com/learningwem/2011/11/27/cq5-4-workflow-process-to-send-an-email-usin g-messagegateway/

 

I was followed this and able send email to the recipients .

 

But is it possible to send email CQ APi and custome email template ?

 

I was tried this using workflow process

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

public class SendEmailWorkflowProcess implements WorkflowProcess {

 

    @Reference

           private MessageGatewayService messageGatewayService;

   

    public void execute(WorkItem item, WorkflowSession wfsession,MetaDataMap metaData) throws WorkflowException {

 

 

              HtmlEmail email = new HtmlEmail();

 

         try{

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

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

               email.setTo( emailRecipients );

              email.setSubject( "This is subject");

              email.setHtmlMsg( "Email testing is on");

 

              String template = "/apps/cq/workflow/email/test/en.txt";

              Session session = wfsession.getSession();

 

              Resource templateRsrc = jcrResolverFactory.getResourceResolver(session).getResource(template);

 

              if (templateRsrc.getChild("file") != null) {

                 templateRsrc = templateRsrc.getChild("file");

              }

              if (templateRsrc == null) {

                 throw new IllegalArgumentException("Missing template:---------- " + template);

              }

             

              final MailTemplate mailTemplate = MailTemplate.create(templateRsrc.getPath(),

                      templateRsrc.getResourceResolver().adaptTo(Session.class));

           

                        email = mailTemplate.getEmail(StrLookup.lookup(properties,HtmlEmail.class));

      

              //Check the logs to see that messageGatewayService is not null

              log.info("messageGatewayService : " + messageGatewayService);

 

 

              messageGateway = messageGatewayService.getGateway(HtmlEmail.class);

 

 

              //Check the logs to see that messageGateway is not null

              log.info("messageGateway : " + messageGateway);

 

 

              messageGateway.send( email );

             }

          catch ( Exception e ) {

              e.printStackTrace();

              log.error( "Fatal error while sending email in workflow", e );

          }

 

 

     } 

 

 

    }

 

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

 

If this is correct procedure ,

 

email = mailTemplate.getEmail(StrLookup.lookup(properties,HtmlEmail.class));

 

what value required for " properties "(properties can't be resolved)

 

All sugestions are accepted

Viewing all 12476 articles
Browse latest View live


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