Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

bbboy2014
Community profile bbboy2014 Level 2
Job title here
Location here
4 BADGES
Level 2

Level 2

Learn more
Joined the community 22-09-2014 8:13:33 PM
Offline
Top badges earned by bbboy2014
Customize the badges you want to showcase on your profile
Re: How to get current page or current page sub page or all pages contents byte for post to remote server for translate
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi sham,Many thanks for your reply, i think it is helpful to me really. Now i am checking it but a place let me confused that there is no any defined language in the "workflow" tab of the sidekick. Please see the screenshot following: [img]nolanguage.jpg[/img]

Views

118

Likes

0

Replies

0
How to get current page or current page sub page or all pages contents byte for post to remote server for translate
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Now there is a need to get current page or current page sub page or all pages in CQ5, also need 1)to post the page content to remote server for translate; 2) and if necessary to post the page's properties like title and description to remote server for tranlate. As a result, these page file translated will be pulled back to CQ5And now i found in this forum someone mentioned as below could get:currentPage - request.getResource().adaptTo(Page.class)currentNode - request.getResource().adaptTo(Node....

Views

677

Likes

0

Replies

6
Re: How to download the file in the CQ5
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Get it , thank you so much.

Views

1.1K

Likes

0

Replies

0
Re: How to download the file in the CQ5
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
thank you so much. i think it is very helpful to me.

Views

975

Likes

0

Replies

0
Re: Dose AEM support JQuery animate function?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi Mshajiahmed,Thanks for your reply. I check and see that article you comment. Certainly, i made sure the necessary JQuery lib was added into clientlibs before i post this question. But, just only that functionanimate() always not work rather than jquery, i think it is a little weird.

Views

132

Likes

0

Replies

0
Dose AEM support JQuery animate function?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,Please see the snippet code below:function runProgress(id, percentage, speed, isSwitched) { $("#uploadedFileNo").show(); var wii = parseInt(percentage) / 100 * progressBarWidth; if(speed == "normal") { $("#ProgressBar" + id).animate({width : wii}, "normal", function() { var displayData = percentage + "%"; alert("displayData: " + displayData);/////// $("#bp"+ id).find(".icons").text(displayData); if (percentage == 100 && isSwitched) { queryFileProfile(id); uploadedFileNo++; $("#uploadedF...

Views

177

Likes

0

Replies

3
Re: How to remote dubug AEM OSGI bundle using eclipse?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi bsloki,Sorry, i don't understand what your meaning of server configuration? And the code dont need to run any server platform. Just remote debug.Please let me know what you want to know. Best regards,Brian

Views

346

Likes

0

Replies

0
Re: How to remote dubug AEM OSGI bundle using eclipse?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi Matthias,I just download Eclipse Luna SR1 to view server but, missing tick on the breakpoint bullet as well. It's confused.I guess it not relevant to the Eclipse. Maybe there is other reason to this problem. Best regards,Brian

Views

344

Likes

0

Replies

0
Re: How to remote dubug AEM OSGI bundle using eclipse?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi Matthias,Sorry i can't find the 'Servers' view to pen since i use the eclipse version 'Luna Release (4.4.0)'.And i am sure core bundle added. Best regards,Brian

Views

342

Likes

0

Replies

0
Re: How to remote dubug AEM OSGI bundle using eclipse?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
This class only one method doGet() to run, so i insert a breakpoint in the beginning. But never pause!

Views

347

Likes

0

Replies

0
Re: How to remote dubug AEM OSGI bundle using eclipse?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi schoger,Yes, i did add the bundle to debugging configuration. Please see following screenshot:[img]debug.png[/img]But i notice log is printed, the breakpoint never pause! It's weird.This is a sling servlet that integrated into OSGI bundle and deployed, as a result i suspect it not support debug servlet?

Views

344

Likes

0

Replies

0
How to remote dubug AEM OSGI bundle using eclipse?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,Firstly starting CQ5 with:java -Xmx512m -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -jar cq-author-4502.jarThen to start a remote debugging session from Eclipse, do the following:Open Eclipse.Choose Run > Debug Configurations.Right-click Remote Java Applications and select New.Select your CQ5 project under Project.Type in the port from the "address" configuration of the jvm parameter defined above. In the example, it is port 8000 (and the host name of the machine ...

Views

2.0K

Likes

0

Replies

11
Re: How to use JQuery or JS to download file from AEM workspace path
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi scott, thank you so much for reply, quite helpful. But my AEM server happened exception:java.util.zip.ZipException: ZIP file must have at least one entryat java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304) at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:140) at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321) at com.adobe.cq.sling.DownLoadFile.zipFiles(DownLoadFile.java:168) at com.adobe.cq.sling.DownLoadFile.doGet(DownLoadFile.java:102) at org....

Views

321

Likes

0

Replies

0
Re: How to use JQuery or JS to download file from AEM workspace path
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
And i am wondering what the type of the nodes under the path car, e.g., "car1.png, car11.png ....". But i directly put image "1.gif, 2.gif" onto the path rather than define a node type to store image.Looks like the above exception occurred because you did not have content in the ZIP file. Make sure that you place at least one file in it.

Views

323

Likes

0

Replies

0
How to use JQuery or JS to download file from AEM workspace path
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,There is a download file case: the files created and stored by OSGI bundle on path:{CQ5-HOME}\sourcefile\1.xmlNow i need to use JQuery or JS in JSP page to download from the above CQ5 server path,then post to another romote server.[img]file.png[/img]Anyone know how to deal with that? Please comment on here.Thanks a lot in advance. Best regards,Brian

Views

954

Likes

0

Replies

4
Re: How to get support language item list using API?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi Shekhar,Thanks for your reply, but not to my question.

Views

397

Likes

0

Replies

0
How to get support language item list using API?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,I realize that under the path: /libs/wcm/core/resources/languages here list lots of language.1) These language are the AEM only support language list?2)How to use API to get these language and return HashMap ? In other word, how to get AEM support language and country item list?Anyone could help point out the way? Thanks a lot in advance.

Views

551

Likes

0

Replies

4
How to export a node ignore child with using JCR API
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
JCR Session interface have 2 method for developer to export and import operation.Now i am going to export this node not contains it's child: /content/geometrixx/en/products/squareprotected void test() { try { String nodePath = "/content/geometrixx/en/products/square"; Node exportNode = session.getNodeByIdentifier(nodePath ); this.exportSystemView(session, exportNode); } catch (Exception ex){ ex.printStackTrace(); } closeSession(); System.out.println("Export Ok"); } private void exportSystemView(...

Views

461

Likes

0

Replies

1
Live Copy Page API
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,Now i face a case to write a OSGI Service, which function like "live copy page". But i don't know it's JCR API or AEM API since i should use the JAR-related if AEM provided.Anyone know that please let me know? Many thanks for that. Best regards,Brian

Views

257

Likes

0

Replies

1
The compliance for page texts
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,I notice that the any text of page defined as a node type, illustrate following:[img]text.png[/img]So if AEM developer to define a new page from previous template, but i don't know how to auto-create that node text and title and so on. What is the compliance?Anyone could help see that? Thanks a lot. Best regards,Brian

Views

81

Likes

0

Replies

1
Re: The problem with copy node
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi bsloki,You are good and i catch your meaning.Thank you so much. Brian

Views

143

Likes

0

Replies

0
Re: The problem with copy node
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi bsloki,I just use this JCR API to copy a node to another path. As per your point out something, how do you think to deal with it if need to use the same template as that of the source page/node?Thanks a lot.Brian

Views

144

Likes

0

Replies

0
The problem with copy node
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,Please see following code to copy a node: Node src = session.getRootNode().getNode("content/geometrixx-outdoors/en/men/coats/edmonton-winter/jcr:content"); Node dstParent = session.getRootNode().getNode("content/geometrixx-outdoors/fr/men/coats/edmonton-winter"); JcrUtil.copy(src, dstParent, "jcr:content"); session.save(); session.logout();But the result seems the des-page lack of anything, please see following:This is source page:[img]copy.png[/img]This is des-page:[img]copy2.png[/img]...

Views

447

Likes

0

Replies

5
Re: How to create File Object in AEM if using apache http client to post file to AEM
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Great, it is just fit to my need. Thanks for your reply.

Views

232

Likes

0

Replies

0
Re: How to create File Object in AEM if using apache http client to post file to AEM
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi sumit, i saw that aritcle before. And this post target is how to create Java File Object in AEM since i need to use File Object to another function.thanks for your comment.

Views

209

Likes

0

Replies

0
How to create File Object in AEM if using apache http client to post file to AEM
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,I have a case that it need to use apache http client to post file(e.g., XML file format) to AEM. Below is client code snippet :public void SubmitPost(String url, String filename, String filepath) { HttpClient httpclient = new DefaultHttpClient(); try { HttpPost httppost = new HttpPost(url); FileBody bin = new FileBody(new File(filepath + File.separator + filename)); StringBody comment = new StringBody(filename); MultipartEntity reqEntity = new MultipartEntity(); reqEntity.addPart("file"...

Views

586

Likes

0

Replies

4
Re: How to import dom4j dependency for OSGI bundle
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi,i find a solution to resolve this problem as below: com.sun.msv.*;resolution:=optional, nu.xom;resolution:=optional, org.gjt.xpp;resolution:=optional, org.jdom.*;resolution:=optional, org.relaxng.datatype;resolution:=optional, org.xmlpull.v1;resolution:=optional, * After deployment and it helps. But i not sure if it is right?Anyway thanks a lot for your help.

Views

756

Likes

0

Replies

0
Re: How to import dom4j dependency for OSGI bundle
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi bsloki,Again modify that pom.xml as per your comment, but error either as following:Imported Packages com.day.cq.commons.jcr,version=[5.7,6) from com.day.cq.cq-commons (263)com.day.cq.wcm.api,version=[1.1,2) from com.day.cq.wcm.cq-wcm-api (368)com.sun.msv.datatype -- Cannot be resolved and overwritten by Boot Delegationcom.sun.msv.datatype.xsd -- Cannot be resolved and overwritten by Boot Delegationjavax.jcr,version=[2.0,3) from org.apache.sling.jcr.jcr-wrapper (106)javax.servlet.http from or...

Views

760

Likes

0

Replies

0
Re: How to import dom4j dependency for OSGI bundle
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
And also it seems like a dependency hell even though i add the rest xom, pull-parser, jdom,xpp3, xsdlib and so on.

Views

758

Likes

0

Replies

0
Re: How to import dom4j dependency for OSGI bundle
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi bsloki,thanks for your reply. And i add dependency to pom.xml as below: org.apache.felix maven-bundle-plugin true cq5 dom4j, jaxen true * But after deploy it apear error again, please see following:com.day.cq.commons.jcr,version=[5.7,6) from com.day.cq.cq-commons (263)com.day.cq.wcm.api,version=[1.1,2) from com.day.cq.wcm.cq-wcm-api (368)com.sun.msv.datatype -- Cannot be resolved and overwritten by Boot Delegationcom.sun.msv.datatype.xsd -- Cannot be resolved and overwritten by Boot D...

Views

759

Likes

0

Replies

0
Likes given to
Likes from