since ‎12-11-2015
‎10-12-2019
kennyhank
Level 2
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
The reason is because on this mixed component (Text&Image) I have 3 scenarios:1- Only text wich behaviour is the same as Text component.2- Only image wich behaviour is the same as Image component.3- Having both text and image on the same component.So basically is more easily for author having these both components in only editable one component, and very useful, and the most important is a client requirement

Views

831

Likes

0

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
I have Text, Image and Text&Image components, I'm including assetshare on Image and Text&Image, not on Text, text component is just text, nothing to share there.I always use templates on my HTL code when I have to call more than one .html file on the same component, here I'm including components for that reason I'm using:text&image.html.........HTL Text&Image component code here........more HTL Text&Image component code here--------->image.html.........HTL Image component code here........more H...

Views

829

Likes

0

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
I have a Text and Image components, and I create a new one wich is a mixed of Text&Image component, everyone has its own behaviour. On the other hand I have another component called assetsharing wich I include as part of any component with assets capable to share, for instance I include this component on the last tab of Image and Text&Image components's dialog. I'll never used my assetsharing component as a separate component, I always use this component as part of other depending of the use of ...

Views

827

Likes

0

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
I used the annotations to my class as well:@Model(adaptables = SlingHttpServletRequest.class)public class AssetSharing { //ATTRIBUTES - GENERAL //ATTRIBUTES - DIALOG PROPERTIES public AssetSharing(SlingHttpServletRequest request) { .... //code here this.wcmmode = (WCMMode.fromRequest(request) != WCMMode.DISABLED) && (WCMMode.fromRequest(request) != WCMMode.PREVIEW); .... // more code here }that is why I got already the request, but how I said before when I try to fetch the wcmmode, I always rece...

Views

833

Likes

0

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
You are right, but on this particular case I prefer create an small component with its html, dialog, and Java backend, and I can include my component as part of any other component because is a good way to reuse my code, for instance:

Views

828

Likes

0

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
I have a component for social share, this component doesn't work by itself, but I include it to other components like Image and Videoplayer for instance because is similar for both, I reuse its dialog by including on the last tab of the dialogs of the other components and forming its own html depending of the options that author used.

Views

825

Likes

0

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hi all thanks for your thoughts, I agree with last comment maybe my problem is on the architecture. I have a component that I passed its html to another different component (B), but my B component is composed for text & image components, and I passed the param wcmmode=disabled because I don't want to make editable those components as separate.Part of the htl code:With this I make my entire component "textℑ" editable as one, and not 2 separate components. But the problem is with another component...

Views

836

Likes

0

Replies

0
Retrieving the 'SlingHttpServletRequest request' from a parent node.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hi Community!For some reasons I need to retrieve the 'SlingHttpServletRequest request' from a parent node and I'm not be able to do it, I have already the request from the actual node but I'm passing on HTL an wcmmode='disabled' fixed value, this is why I'm going to need the parent request, sample code here: Resource resource = request.getResource(); Resource parent = resource.getParent(); SlingHttpServletRequest requestParent = parent.adaptTo(SlingHttpServletRequest.class);This is how I'm tryin...

Views

4.1K

Like

1

Replies

21
Re: How deactivate templates without modifying the users permissions.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Yes the users have the privileges to use templates, this is why I want to deactivate one specific template without made any changes to the user permissions.

Views

474

Likes

0

Replies

0
Re: How deactivate templates without modifying the users permissions.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Sorry I forget mention that my templates were created on AEM 6.0, now I'm using 6.2, but answering your question, no, I didn't use the Template Editor to create those old templates.

Views

466

Likes

0

Replies

0
How deactivate templates without modifying the users permissions.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hi Community i'm trying to deactivate some templates without making changes on the users permissions, I try with the allowedPaths property (for instance using a regex like this: /b/B) but I got an issue, if we copy and paste (on the same path) one page of one of the templates with the restriction on the allowedPaths property you can by-pass the restriction and you will be able to have pages on undesire paths. Any idea of what can I do to fix this? or something new to deactivate templates without...

Views

900

Like

1

Replies

5
Re: Adding items on multifield at top?
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hi Peter,I'll going to test this asap, and make the needed modifications for my own multifield behaviour.Thanks you very much.

Views

421

Likes

0

Replies

0
Adding items on multifield at top?
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hello community, using multifields on our dialogs is very useful, but sometimes when you have one with many items, its hard to add an item and up it to the top of the list on the multifield, because the normal behaviour of the button is insert a new item at the end. Is possible have two buttons add, one for adding at top and the other for adding on bottom? Someone used this before? I did a research about on the multifield widget but I couldn't find a solution for this.I would be grateful for any...

Views

589

Like

1

Replies

3
Re: AEM Community Code Contest 2017 -- Winners will get Passes for developer conference of Experience Manager Immerse 2017
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
sandeepm744005 wrote... kautuksahni wrote... Hurry up community. January end is the last date for submitting the code. ~kautuk is it still open ? I don't think so, the form for participate is not longer anymore.

Views

1.7K

Likes

0

Replies

2
Re: Deleting pages issue #hotfixesaem
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
I pass this issue long time ago to the operation team of my company, because I don't have the required privilgies to create a ticket for the AEM Support Team, anyways we move forward to AEM6.2 and this issue was solved.Thanks for all your answers.Regards.K.

Views

1.1K

Likes

0

Replies

0
Re: AEM 6.0 SP3 How change admin password?
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
In order to update this post, recently I notice that the floating window for change the password works with other browsers like Firefox or IE, but I don't know why on Chrome the problem persist, nothing happen when you click the "Change password" button, so my problem was solved with another browser, but I put here this info for help another one if needed. I was using a 54 or higher version of Google Chrome, and my display resolution is 1920x1080.Thanks a lot to everyone, all your replies were v...

Views

1.1K

Likes

0

Replies

0
Re: Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Unauthorized
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
vsharm3 wrote... This issue has been resolved :). I was using which is not applicable for goal package and instead should be using as per the maven documenation. http://dev.day.com/docs/en/cq/5-5/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.html com.day.jcr.vault content-package-maven-plugin 0.0.18 ${project.artifactId} true src/main/content/META-INF/vault/filter.xml src/main/content/jcr_root target/${project.artifactId}-${project.version}.zip ${crx_url}/crx/packmgr/service.jsp ${crx_user} --> ${crx_...

Views

3.4K

Likes

0

Replies

0
Re: AEM 6.0 SP3 How change admin password?
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hello Peter, I try in classic but every user has a button "Set password", and this button is missing for admin account, intentionally I think.

Views

869

Likes

0

Replies

0
AEM 6.0 SP3 How change admin password?
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hello guys!! I was looking as long how change the password of the admin account and the solutions of others doesn't work for me, most people said about change the pass by Tools -> Operations -> Security -> Users :But in my case the "Change Password" link doesn't work, it suppose to open a floating window for type the passwords but don't. I try others solutions but no one works, specially for my AEM 6.0 version.Any help would be great, many thanks in advance.

Views

2.7K

Like

1

Replies

7
Re: Deleting pages issue #hotfixesaem
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Thanks for the follow-up. What is the process to open a ticket ? Could you help me with that info?Thanks in advance.

Views

1.1K

Likes

0

Replies

1
Re: Deleting pages issue #hotfixesaem
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
I'm using AEM 6.0 with Java 1.8

Views

1.1K

Likes

0

Replies

3
Deleting pages issue  #hotfixesaem
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hello community!After install the Service Pack 3 and some hotfixes related I'm having an issue when I try delete pages on the #siteadmin and as result can't delete any pages now. The following is the error from the console log on CRXDE:Part1Part2Also this is a capture of developer tools from Chrome when the process to delete failed: Any help with this issue would be very grateful. Thanks in advance.

Views

1.1K

Like

1

Replies

6
Re: Create components with a .js file or Java class model.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Thanks very much guys, all your points are well received, thanks for sharing your knowledge. I think that depend of the complexity of the component, because I don't see necessary the big effort with code on Java with simple components, but as smacdonald said in order to create more powerful components make sense use Java. Thanks to all again.

Views

578

Like

1

Replies

0
Re: Create components with a .js file or Java class model.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
On the example I only write the js or Java part, in both cases I use html with Sightly calling the properties. Also it is a simple component as example in order to know more about creating components. Thanks

Views

569

Likes

0

Replies

0
Re: Create components with a .js file or Java class model.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Thanks for your quick response, I can see a lot of changes, I need read all these links, so in fact Sightly is called HTL now?

Views

586

Likes

0

Replies

0
Create components with a .js file or Java class model.
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hi guys I need some help with this:I'm seeing that sometimes the people create components with a .js file to store all the properties of their widgets, for example:use(function() { var CONST = { PROP_TITLE: "heading", PROP_PAGE_TITLE: "jcr:title" }; var title = {}; title.CONST= CONST; return title;});And sometimes this was made with a model Java class for example://XComponent.java@Model(adaptables = Resource.class) public class XComponent { private XComponentModel model; public XComponent(Resour...

Views

1.7K

Likes

2

Replies

8
Re: Datetime xtype field validation
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Possible solution:In my experience in software development throw to many msg windows its to tedious for the user, so i propose you may the first StartTime enable, but the second disable, so you need create a listeners node in your component's dialog, in there you may validate your widgets (both fields), maybe enabled the second field when you lost the focus in your first field, or something. Other idea is use those Datetime methods getValue() for obtain the value in your first, and startValue() ...

Views

599

Likes

0

Replies

0
Re: issue using hr tag in richtext.....
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
thanks leeasling for you fast help.......we have a component like this, but we have a new requirement for print and line in the text editor for a better work for the people who use this component, so we propose add that new plugin like a better solution and now i have this issue.................however thanks a lot for your help

Views

657

Likes

0

Replies

0
issue using hr tag in richtext.....
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Hi guys! 🙂 Recently i added a custom plugin for my richtext, to print hr tag, and works perfectly but when i positioned the cursor in a position below at hr line, start an infinite recursive call, i think the richtext have a method (updateToolsbar) and dont recognize my hr plugins, i need suggestions for that issue? Can somebody help me please? I'm new using AEM like 3 months and half, please remember that!, i'm not an expert! 😉 LOL.......Thanks

Views

916

Like

1

Replies

2
Re: Richtext's plugins doesn't see well in IE9! Help me please...
Avatar

kennyhank

kennyhank
- Adobe Experience Manager
Well my previously solution carry me some bugs, right now i include in my externalStyleSheets = /etc/clientlibs/mynamespace/components/css/rte.css the next:/* Bootstrap overrides for ie9 toolbar*/button.x-btn-text { box-sizing: border-box;}and works fine, and its just a change for me and doesn't affect others teams, i think was a better solution, Thanks smacdonald2008 and bsloki for your attention and answers.

Views

237

Likes

0

Replies

0
Likes from