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
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 there,because of using dom4j to parse and create XML format document, as a result i add dependency to pom.xml dom4j dom4j 1.6.1 jaxen jaxen 1.1.1 After run command "mvn clean install" and deploy this jar to OSGI bundle pool. Eventually appear error: org.dom4j -- Cannot be resolved, illustration following:[img]dom4j.png[/img]Anyone could help see it? Thanks a lot. Best regards,Brian

Views

2.8K

Likes

0

Replies

8
Re: Why can't get the Json pair value
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
Thanks for your reply, i gain most again.

Views

209

Likes

0

Replies

0
Re: Why can't get the Json pair value
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
justin_at_adobe wrote... bbboy2014 wrote... It not work according to your way 😞 Sorry, I misread your code. I missed that the JSON is an object wrapped in an array. I should have written var ack = obj[0].result; Exactly

Views

153

Likes

0

Replies

0
Re: Why can't get the Json pair value
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
It not work according to your way 😞

Views

151

Likes

0

Replies

0
Why can't get the Json pair value
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
The server servlet code is below(return to client);JSONWriter jw = new JSONWriter(response.getWriter()); try { jw.array(); jw.object(); jw.key("result").value(result); jw.endObject(); jw.endArray(); } catch (JSONException e) { log.error("JSON Exception:", e); }And the client file JS in fold clientlibraryfold "xxx.js" not JSP page is below:CQ.Ext.Ajax.request({ url: CQ.HTTP.externalize("/bin/customer"), method: "GET", success: function(response) { var info = response.responseText; alert(info);//[...

Views

510

Likes

0

Replies

6
Re: Why can't display tree using dynatree plugin?
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, you are so great. Now that tree running well. Thank you so much for your reply.

Views

141

Likes

0

Replies

0
Re: Why can't display tree using dynatree plugin?
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
smacdonald2008 wrote... Here is a new community article that steps you though this use case - creating an AEM component that uses Dynatree to display data in an tree structure. http://helpx.adobe.com/experience-manager/using/creating-touchui-tree.html It is so weird, i do this completely follow the article but, never see the tree on the page. And i begin to suspect the condition on System Enviroment. Could you possibly help check that again? you could download the APP package from this link: htt...

Views

140

Likes

0

Replies

0
Re: Why can't display tree using dynatree plugin?
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 smacdonald, i can't see the tree either. If you have free time, could you possibly package a example app and run well in your computer for me?Thanks a lot.

Views

141

Likes

0

Replies

0
Why can't display tree using dynatree plugin?
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
Dynatree is a JavaScript dynamic tree view plugin for jQuery with support for persistence, keyboard, checkboxes, drag'n'drop, and lazy loading.Today i use it in AEM but, the tree always can't display at all in my computer. That make me frustrating and i do it completely accoding to the clientlibs requirement in AEM. Now i package myapp and upload to cloudy space:http://yun.baidu.com/share/link?shareid=1820032861&uk=3274495776 Anyone could help check it? Thanks a lot.

Views

3.8K

Likes

0

Replies

12
Re: How to make a button become gray(disable) in sidekick
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 D, you answer help and work. But here another question: if the true or false up to a result that invoke OSGI bundle java function, how to write that code in the JS block?

Views

163

Likes

0

Replies

0
How to make a button become gray(disable) in sidekick
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
I add a new button into sidekick. Assume there is a variable to control this button (not)gray in sidekick, but how to make it? Anyone know that, please comment on that.Thanks a lot! addToCart: function(sk){ var pagePanel = sk.panels["PAGE"]; var button = pagePanel.findBy(function(comp){ return comp["name"] == "ADD2_CART"; }, pagePanel); if(button && button.length > 0){ return; } button = { xtype: "button", scope: sk, name: "ADD2_CART", text: "Add to cart", "context": [ CQ.wcm.Sidekick.PAGE ], ha...

Views

390

Likes

0

Replies

3
Re: EXTJS need to parse response from AEM servlet and How to do?
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
Right now i try to change the client JS like below, It hint undefined.var info = response.responseText; alert(info); // [{"result":1}] alert(info.result); // undefinedAnd the servlet code is following:jw.array(); jw.object(); jw.key("result").value(result); jw.endObject(); jw.endArray();

Views

227

Likes

0

Replies

0
Re: EXTJS need to parse response from AEM servlet and How to do?
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 case not a dynatree control, and just only get a variable value from servlet you can see the code in it:jw.array(); jw.object(); jw.key("result:").value(result); jw.endObject(); jw.endArray();Then the client to get this return like below:var info = Ext.decode(response.responseText);But when process run this line crash, i don't know how to deal with it.

Views

165

Likes

0

Replies

0
Re: EXTJS need to parse response from AEM servlet and How to do?
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, i change my servlet code following that article way. Like you know the xtype encapsulate it's field to JSON pairs key and value. And i just get a pair of key value from servlet and try to use this code " var info = Ext.decode(response.responseText); " to get return pair, but crash at the line. Do you have any solution for that? Thanks a lot.

Views

165

Likes

0

Replies

0
EXTJS need to parse response from AEM servlet and How to do?
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
There is a case to Add a button into sidekick, which need to be disable(grey) or enable also, controlled by one condition that data stored in AEM, please see following code:CQ.Ext.ns("MyClientLib"); var resultFromAEM; MyClientLib.ContentFinder = { addGsTranslate: function(sk){ var pagePanel = sk.panels["PAGE"]; var button = pagePanel.findBy(function(comp){ return comp["name"] == "Test_button"; }, pagePanel); if(button && button.length > 0){ return; } button = { xtype: "button", scope: sk, name: ...

Views

647

Likes

0

Replies

7
AEM server background error-log always happen error: com.day.cq.replication.Agent.public Error while sending request: java.net.ConnectException
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
I find the AEM server backgound always happened error message com.day.cq.replication.Agent.public Error while sending request: java.net.ConnectException: Connection refused: connectDetails please refer following illustration, Anyone know how to solve it? Thanks a lot.[img]error.png[/img]

Views

574

Likes

0

Replies

1
Re: Is there any other light-weight tool compare to crxde-1.0.1.win32.win32.x86_64
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, i dont know how to use it to connect AEM, i see it just an editor.

Views

273

Likes

0

Replies

0
Is there any other light-weight tool compare to crxde-1.0.1.win32.win32.x86_64
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
I often need to upload kinds of file to AEM and have to use crxde-1.0.1.win32.win32.x86_64 tool but, which performance incredibly not well since for each time it take longer time to initialize and load workspace, it's a bad experience.

Views

615

Likes

0

Replies

3
Re: how to get a node or page language?
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 i get the jar, and i invode this method " LanguageUtil.getLanguageRoot(path)", but the result is not my need. For example: " LanguageUtil.getLanguageRoot(/content/geometrixx/en/services);" it will return "/content/geometrixx/en". Actually if there is any API to get language, like the country code or language name "en" "fr" and so on.

Views

560

Likes

0

Replies

0
Re: how to get a node or page language?
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
Thanks for your reply, How to get the jar to invoke it's method?

Views

545

Likes

0

Replies

0
how to get a node or page language?
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
For example: there is a node:/content/geometrixx/en/services, so you can see the page is English. But the developer how to use JCR API to get the language?Anyone experience on it please comment here, thanks a lot.

Views

1.5K

Likes

0

Replies

4
Re: How to open a link page when user press the button in sidekick?
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
It help. Thank you so much.

Views

179

Likes

0

Replies

0
Re: How to open a link page when user press the button in sidekick?
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,If developer want to add a button[Add to cart] to all website pages default, it seems only to modify file sidekick.js rather than using clientlib because JS in clientlib just for any page of that specified template, right?

Views

178

Likes

0

Replies

0
How to open a link page when user press the button in sidekick?
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 added an button into the sidekick it will open a new page if user press it, so i how to make this click event work?BTW, i let the sidekick to add new button by the way of modify file sidekick.js, i have no idea to deal with it.Anyone could help see it? Please told me your solution. Thanks a lot.[img]sidekick.png[/img]

Views

367

Likes

0

Replies

4
Re: Is there any Tree UI plugin in the AEM to embed page
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 check the source find a list of file JS as screenshot, i am not sure maybe the both file have conflict between jquery-1.11.0.js and jquery.js but, i don't know the reason why the file jquery-1.11.0.js imported here since clientLibs dependencies is cq.jquery.

Views

313

Likes

0

Replies

0
Re: Is there any Tree UI plugin in the AEM to embed page
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, i did it follow the example but, always the tree can't see at all as beginning description. I look into it and resarch it through Internet but no any result. I think this problem not complicated and it makes me very confused for now. Could you possibly help see it again? Thanks a lot.

Views

181

Likes

0

Replies

0
Re: Is there any Tree UI plugin in the AEM to embed page
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 check the source find a list of file JS as screenshot, i am not sure maybe the both file have conflict between jquery-1.11.0.js and jquery.js but, i don't know the reason why the file jquery-1.11.0.js imported here since clientLibs dependencies is cq.jquery.[img]treejs.png[/img]

Views

184

Likes

0

Replies

0
Re: Is there any Tree UI plugin in the AEM to embed page
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
Many thanks for your reply. Today i am writing a sample according to the http://code.google.com/p/dynatree/ But always can't display the tree data at all. I don't know the reason, please see below screenshot:And i suspect AEM if support this JQuery plugin? Could you give any suggestions? Thanks again.[img]1.png[/img] <%@include file="/libs/foundation/global.jsp"%> Dynatree - Example $(document).ready(function() { $("#tree").dynatree({ // using default options }); <!-- (Irrelevant source removed.) --> }); Example: Default This tree uses default options. It is initalized from a hidden <ul> element on this page....

Views

182

Likes

0

Replies

0
Is there any Tree UI plugin in the AEM to embed page
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
There is a user-case for me: after user collect some pages via [Add to cart] button, it need to display in the page with a tree way.If a page/node is checked, which are shown in bold to identify and deep down in the tree, please see it like below:[img]tree.png[/img] But finally user could change which page is checked, collect page/node info againg.Anyone have experience on it? Please help give your comments on it.Thanks a lot.

Views

516

Likes

0

Replies

6
How to invoke OSGI bundle in the sidekick.js
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
Because i need to add an button[Add to cart] into sidekick after write code in file sidekick.js, please see following screenshot. Here my requirement is to collect this current page or node path to store in somewhere if user to press this button [Add to cart]. I am a new to AEM and already complete a OSGI bundle to save it. But best confused me is i don't know how and where to invoke this bundle?Anyone could help see this question? Thanks a lot. Anyway if anybody have better solution for that, p...

Views

245

Likes

0

Replies

2
Likes given to
Likes from