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

How to write an ajax call to a JSP page

$
0
0

Hi

 

 

    In CQ publish side, I want to call a jsp page on click of a button . I know we cant directly call it from script. For that we have to use ajax either directly or using jquery.ajax. Can any one help me how can i acheive dis. A sample working example code will be very much helpful .

 

 

Thanks

 

veena


WYSIWYG Editor Used in DayCQ 5.3.2 and 5.4

$
0
0

Hi,

 

May I ask what is the default wysiwyg editor used in DayCQ 5.3.2 and 5.4?

 

Any possibility in customising it?

 

Thanks!

 

Regards

Hon Chun

Errors when (re)activating digital assets on a new Publish install

$
0
0

Greetings,

 

First post here, and I'm also not very well versed with Adobe CQ (yet), so bear with me:

 

I've configured an Author instance in a dev environemtnt, got it up and running, updated, etc and created workflows, set up replication, done all the basics.

 

After a failed attempt to upgrade our Publish instance to CQ5 SP2.2, I recreated it from scratch. I set up replication again with our Author instance, and started reactivating Workflows/Users/Websites/etc.

 

I started to reactivate our Digital Assets (we have many gigs of pictures/movies) and this is where I ran into some problems.

 

I was performing a tree activation on a folder under the Digital Assets, when I noticed that we had something like 300 items stuck in the replication queue.

 

I dug into the replication event log and was greeted with the following error:

 

7.01.2013 12:52:01 - DEBUG - publish : adding header: Action:Activate

07.01.2013 12:52:01 - DEBUG - publish : adding header: Path:/content/dam/WIP/NW/screenshots/Vellosk_Lore_Trailer_Screenshots/neverwinter_e3_scre en7.jpg

07.01.2013 12:52:01 - DEBUG - publish : adding header: Handle:/content/dam/WIP/NW/screenshots/Vellosk_Lore_Trailer_Screenshots/neverwinter_e3_sc reen7.jpg

07.01.2013 12:52:01 - DEBUG - publish : deserialize content for delivery

07.01.2013 12:52:01 - DEBUG - publish : set 1306653 bytes of post body.

07.01.2013 12:52:01 - INFO - publish : Sending POST request to http://eve/bin/receive?sling:authRequestLogin=1

07.01.2013 12:52:01 - INFO - publish : sent. Response: 400 Bad Request

07.01.2013 12:52:01 - ERROR - publish : Replication (ACTIVATE) of /content/dam/WIP/NW/screenshots/Vellosk_Lore_Trailer_Screenshots/neverwinter_e3_screen7.j pg not successful. Conversation follows

07.01.2013 12:52:01 - ERROR - publish : ------------------------------------------------

07.01.2013 12:52:01 - ERROR - publish : Sending message to eve:-1

07.01.2013 12:52:01 - ERROR - publish : >> POST /bin/receive HTTP/1.0

07.01.2013 12:52:01 - ERROR - publish : >> Action: Activate

07.01.2013 12:52:01 - ERROR - publish : >> Path: /content/dam/WIP/NW/screenshots/Vellosk_Lore_Trailer_Screenshots/neverwinter_e3_screen7.j pg

07.01.2013 12:52:01 - ERROR - publish : >> Handle: /content/dam/WIP/NW/screenshots/Vellosk_Lore_Trailer_Screenshots/neverwinter_e3_screen7.j pg

07.01.2013 12:52:01 - ERROR - publish : >> ...spooling 1306653 bytes...

07.01.2013 12:52:01 - ERROR - publish : --

07.01.2013 12:52:01 - ERROR - publish : << HTTP/1.1 400 Bad Request

07.01.2013 12:52:01 - ERROR - publish : << Connection: Close

07.01.2013 12:52:01 - ERROR - publish : << Server: Day-Servlet-Engine/4.1.32

07.01.2013 12:52:01 - ERROR - publish : << Content-Type: text/plain;charset=utf-8

07.01.2013 12:52:01 - ERROR - publish : << Content-Length: 130

07.01.2013 12:52:01 - ERROR - publish : << Date: Mon, 07 Jan 2013 20:52:01 GMT

07.01.2013 12:52:01 - ERROR - publish : <<

07.01.2013 12:52:01 - ERROR - publish : << error: com.day.cq.replication.ReplicationException: Repository error during page import: The system cannot find the path specified

07.01.2013 12:52:01 - ERROR - publish : Message sent.

07.01.2013 12:52:01 - ERROR - publish : ------------------------------------------------

07.01.2013 12:52:01 - INFO - publish : Replication (ACTIVATE) of /content/dam/WIP/NW/screenshots/Vellosk_Lore_Trailer_Screenshots/neverwinter_e3_screen7.j pg not successful.

 

I can't for the life of me find anything on Google that might have more information on this issue (or the cause). Could anyone point me in the right direction to resolve this issue?

 

Thanks!

how to cancel inheritance by default for particular components in live copy which is created based o

$
0
0

how to cancel inheritance by default for particular components in live copy which is created based on a blueprint

How to write a subquery using JCR SQL2 in CQ5(without ModeShape)

$
0
0

Hi,

 

We have a parent node with several levels of child nodes. We are trying to do a node level search i.e., if the search key is present in any of the properties in the parent node or the child nodes, the query must return the parent node alone(NOT the child nodes).

 

The below JCR SQL2 query will do the above said functionality,

SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/DB/ParentNode]) and CONTAINS(s.*, 'searchKey')

 

The constraint is that we have other filters, which when applied, will give only the nodes which has the required property. For example

SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/DB/ParentNode]) and CONTAINS(s.*, 'searchKey') and column1 = 'filter1'

 

where column1 is present only in the ParentNode and not the child nodes.

 

Hence the above query will limit the search to the ParentNode only and it will not search the child nodes. Also when you use the first query you are getting child node path but my requirement is to get all the Parent Node paths.

 

And so I decided to write a sub-query like the one shown below,

SELECT * FROM [nt:base] as a

WHERE PATH() IN (

   SELECT * FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/DB/ParentNode]) and CONTAINS(s.*, 'searchKey')

)

and column1 = 'filter1'

 

But the above query is not working in CRXDE Lite. When i searched the web it is said that sub-query and join conditions are possible only using ModeShape.

 

I have no idea what ModeShape is. If any one has any idea on writing a sub query using JCR SQL2 in CQ5 without ModeShape, please help. Thanks in advance.

Vanity URLs in multiple domains with one CQ5 instance

$
0
0

I have two websites which are in different domains but use the same CQ5 author instance. How can I setup the same Vanity URLs for both websites.

For example, one.com/shorturl and two.com/shorturl. I tried it with /shorturl in Vanity URL for both page templates, but only one matching is always successful.

How do i use querybuilder.json to return similar search

$
0
0

Can querybuilder.json return a similar search?  That is if I use

querybuilder.json?fulltext=walnt

I'd like to get the results for "walnut".  What predicate should I use?

is there anyway to update the node properties using query manager ?

$
0
0

I have to update few properties of specific nodes.    I am able to get them using httpclient or sql query  .  I would like to know ,how to write back to repository with new values ?   using either JCR or query builder ?

 

Any help apperciated.

 

 

I am getting info using 1) httpclient : 

 

DefaultHttpClient httpclient = new DefaultHttpClient();

        Credentials defaultcreds = new UsernamePasswordCredentials(this.getUsername(), this.getPassword());

       httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, defaultcreds);

        String request = this.host + "/bin/querybuilder.json";

          HttpPost httppost = new HttpPost(request);

        List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);

        nameValuePairs.add(new BasicNameValuePair("path", path));

        nameValuePairs.add(new BasicNameValuePair("type", "cq:Page"));

   httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

        ResponseHandler<String> responseHandler = new BasicResponseHandler();

    String responseBody = httpclient.execute(httppost, responseHandler);

 

2) using sql query

SELECT*  FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/path/to/node]) AND  s.[sling:resourceType]= CAST('some/thing/' AS STRING)


How to check CQ version installed in publisher

$
0
0

Dear All,

 

Could anyone please let me know how to find out which version of CQ has been installed on publish instance?

 

Regards

Change the URL path for CQ?

$
0
0

How do you change the base URL so that /content/geometrixx/en does not show up in the URL?  If www.geometrixx.com was the URL how do you make it so that /conent/geometrixx/en does not show up in the URL for the homepage?

Issue rolling out page

$
0
0

Hi all,

 

Occasionally when rolling out pages via the Sidekick our content authors will receive a notification that the Rollout failed. This notification has no information indicating what the cause of the failure actually was. Digging through the error logs the only item that pops up is the following:

 

29.01.2013 17:59:08.939 *ERROR* [10.7.202.40 [1359500348845] POST /bin/wcmcommand HTTP/1.1] com.day.cq.wcm.msm.impl.commands.RolloutCommand Error during rollout. java.lang.NullPointerException

 

There is no Stack Trace accompanying the error though. Any ideas what could be causing the Null Pointer? If we delete the Live Copy and create a new one the issue does not occur, at least not immediately. My assumption is that the Blueprint page is changing too much between rollouts, resulting in the LiveSync not functioning correctly. I could be completely wrong with that though.

 

Any suggestions or direction would be much appreciated.

 

Thanks

XSLT Transformations cannot be performed on CQ

$
0
0

Is it possible to programmatically run XSLT transformations in CQ from withing a sling JSP component?

 

When i try, i get stuck while trying to get  a javax.xml.transform.Transformer instance from my xsl

The xsl seems to get compiled correctly "Translet class loaded..." but not correctly available "... but unable to create translet instance."

 

This is happening on versions: CQ 5.4, CQ 5.5, CQ 5.6 also on standard local crx-quickstart versions

 

Can be reproduced like this:

  • Setup a sling component (simple jsp) for rendering an XSLT transformation
  • import a (previously tested) xslt stylesheet
  • get the jcr document view XML of the requested resource (resp. corresponding jcr subgraph)
    like: ses.exportDocumentView(path, xmlbos, false, false);
  • get the xsl stylesheet
    like: component.getLocalResource("out/dv.xsl/jcr:content").adaptTo(Node.class).getProperty("jcr :data").getBinary();
  • get a javax.xml.transform.TransformerFactory
    like: TransformerFactory xffac = TransformerFactory.newInstance();
  • try to get a javax.xml.transform.Transformer providing the previous stylesheet
    like: Transformer xfer = xffac.newTransformer([ABOVE_BINARY].getStream());
  • > this wan't work! and throw the following error: "Translet class loaded, but unable to create translet instance."

 

Although i was able to verify correct reading of the XML and the XSL data as well as correct compilation of the XSL...

 

Am i missing something? Is there some special cq built-in behaviour that should be used instead? Or some configuration on the TransformerFactory that has to be applied?

 

Many thanks for any help on this!

Regards

Paolo Tognola

Where is Content Explorer in CQ 5.5?

$
0
0

Hello,

 

I have tried to use Content Explorer with CQ 5.5. Going to the url, <host>:<port>/crx/, no longer shows the CRX console. What is the new URL for the Content Explorer and the Content Loader?

 

Xavi

Disabling a tab in a dialog dynamically

$
0
0

I have a dialog with three tabs. There is a selection dropdown on first tab. Based on what selection I make here, one of the second or third tab should be greyed out. So that the user only has one tab left to edit out of second or third one. Has someone done similar thing before?

i18n value in sling include

$
0
0

I am unable to get I18n value in sling include content in 404.jsp/default.jsp.

 

Basically I am including a 404 page ( based on some template ) into sling/servlet/errorhandler/default.jsp like

<sling:include path="/content/mysite/en/errorpage" />

 

I am able to see the included error page in case of 404. But the i18n value that are used in errorpage is not applied, instead i am getting the sling:key as the value itself.

The standalone page (if i directly open the page instead of going thru 404 error ) shows correct i18n value

I am using i18n as:

 

ResourceBundle i18n = slingRequest.getResourceBundle(locale);

or

I18n i18n1= new I18n(slingRequest);

 

Please suggest if i m doing something wrong.


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

How constraint type is populated in foundation form text component??

$
0
0

HI Guys

 

            When i was analysing foundation/components/form/text component i could see that the constraintType is populated from /bin/wcm/foundation/forms/constraints.json . When i am creating a custom text component in apps/<proj>/components/ with same structure it is not getting populated. Where does this /bin/wcm/foundation/forms/constraints.json refer to? I couldnt find any bin folder in my CRXDE. Any help would be appreciable

 

 

Thanks

 

Veena

Added component not to be seen in sidekick

$
0
0

Being new to WCM I tried to add a component as described in "First Steps for Developers". But I can't see the new component neither in sidekick nor in "Insert New Component"-Dialog. What I exactly did, was

 

1. created node "MyProject", primaryType=nt:folder to /apps

2. created node "components", primaryType=nt:folder to /apps

3. copied: /libs/foundation/components/text to /apps/MyProject/components/text

4. renamed /apps/MyProject/components/text to /apps/MyProject/components/MyComponent

5. changed Property jcr:title from "text" to "MyComponent" for node /apps/MyProject/components/MyComponent

6. renamed /apps/MyProject/components/MyComponent/text.jsp to /apps/MyProject/components/MyComponent/MyComponent.jsp

7. save all

8. added String "/apps/MyProject/components/MyComponent" to Property "components" in node /etc/designs/geometrixx/jcr:content/contentpage/par

9. save all

 

Then I called the "Children's"-Page,  which I had created according to the description in "First Steps for Authors". But the componennd doesn't show as described in the beginning of this thread.

 

What's wrong with my actions? I'm pretty sure that I exactly worked according to the sample.

 

brgds,

Ulrich 

what is the use of currentStyle in CQ5

$
0
0

Can you tell me inCQ5,theexact use ofcurrentStyle  object.

Ihave one line like

 

int absParent = currentStyle.get("absParent", 3); 

MayI know what currentStyle will do here.

Viewing all 12476 articles
Browse latest View live


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