since ‎10-07-2019
‎17-09-2020
srinivas_chann1
Level 4
Re: AEM 6.3 with cf8 package is causing issue when using Calc function in css
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Any inputs from any one

Views

64

Likes

0

Replies

0
How to move common code in sightly html file to different files
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, I have a common piece of code in sightly html ,instead of writing the repetitive code can i put this in a different file and just invoke are there any other ways . Please suggest. In /apps/project/testcomponent/testcomponent.htmlin the testcomponent.html:- dd cc ff ... dd cc ff ...I tried:-To put this file in file in /apps/project/testcomponent/abc.htmlso abc.html had:- dd cc ff Now i modified in testcomponent.html:- ......This throws error while page renderPlease suggest how to solve...

Views

113

Likes

0

Replies

2
Re: AEM 6.3 with cf8 package is causing issue when using Calc function in css
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Any inputs from any one

Views

82

Likes

0

Replies

0
AEM 6.3 with cf8 package is causing issue when using Calc function in css
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , When i am using AEM 6.3 with service pack1 and cf8 package installed.I want to apply clip-path: polygon for creating a cut angle at right bottom. works:-When i apply the css inline in the html that is Stay in the moment. issue:-But when i apply to css code.bottom-right {p {clip-path:polygon(0 100%, 0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 65px) 100%);}} After the page is render it is getting converted to clip-path:polygon(0 100%, 0 0, 100% 0, 100% calc(64%), calc(35%) 100%); Here it...

Views

110

Likes

0

Replies

2
Re: How to create a certain angle on pixel difference on a image text using image component
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Any inputs from any one

Views

100

Likes

0

Replies

0
How to create a certain angle on pixel difference on a image text using image component
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, I have to create a angle of 45* degree cut at the edge of an text and also 100 pixel distance using the text image component Please let me know how to achieve it through css or js. Once achieved what tools could be used to measure the accuracy of angle is it exactly 45* degrees or not and is it 100pixel or not?? Below is the text on text image component required. Thanks

Views

112

Likes

0

Replies

2
authentication by SSO for different AEM applications for different portals
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , Wanted to know the procedure as how to authenticate with SSO so that a user will able to login once and have credentials carry over to different platforms on AEM instance for different portals. So that I am not required to login multiple times Note:- Also in case we integrate login with PING then how to do SSO . Thanks

Views

98

Likes

0

Replies

1
Getting started with Experience Fragments
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I want to start using Experience Fragments. Could some one guide what is Experience Fragments and what all info i need to know before using that Thanks

Views

112

Likes

0

Replies

2
Re: MockitoJUnitRunner for junit in AemContext for Resour...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
I was able to solve this /* ResourceBundle.getString(String) is a final method .So inorder to solve this *issue we create a object and hardcode the required key and value */In the above method we must replace key with TEST.STRING import org.apache.sling.i18n.ResourceBundleProvider;import static org.mockito.Mockito.when;@MockResourceBundleProvider resourceBundleProvider;context.bundleContext().registerService(ResourceBundleProvider.class.getName(), resourceBundleProvider, null);when(resourceBundl...

Views

101

Like

1

Replies

0
MockitoJUnitRunner for junit in AemContext for ResourceBundle fails
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I am using MockitoJUnitRunner for junit4 .I getting error when the code ResourceBundle that is there in component class when using junit. Please provide inputs as how to resolve the issue Component class:-import java.util.*;public class ComponentClass extends WCMUsePojo{public void init(final SlingHttpServletRequest slingRequest) {slingRequest.getResourceBundle(locale).getString("TEST.STRING");} Junit class:-0@RunWith(MockitoJUnitRunner.Silent.class)public class testclass {@rulepublic final...

Views

122

Likes

0

Replies

1
MockitoJUnitRunner for junit in AemContext User adapation fails
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I am using MockitoJUnitRunner for Junit . I having the below code in java :- In the below TestUser class on the line resolver.adaptTo(User.class) it fails and is always null how to resolve it import org.apache.jackrabbit.api.security.user.User;import org.apache.sling.api.resource.ResourceResolver;public class TestUser {private final ResourceResolver resolver;private final User user;public TestUser(final ResourceResolver resolver) {this.resolver = resolver;this.user= resolver.adaptTo(User.cl...

Views

107

Likes

0

Replies

1
Re: Creating index for query in aem6.3 which has a path t...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, Could you please provide a sample as how this will look

Views

109

Likes

0

Replies

0
Re: Creating index for query in aem6.3 which has a path t...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks for the input. The data is small subset, but like I mentioned if the query for 2 authors could be different based on path. Then how will be index be for this. Should I create 4 different index or just 1 index and say if path could support any wildcard path like /content/product/* {path=/content/product/abc1, p.limit=-1, property.value=/apps/components/test1, property=sling:resourceType, type=nt:unstructured}{path=/content/product/def2, p.limit=-1, property.value=/apps/components/test1, pr...

Views

115

Likes

0

Replies

0
Creating index for query in aem6.3 which has a path that is dynamic
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi,I have component that sends a query based on the path selected from dialog .This is basically a case when we need to generate reports data based on different path author wants like the author could select path: /content/project/abcthen they could select a different path like : /content/project/def Then we would get a different report. Since a query may slow down the system based on the results it needs to get. Please let me know what should be approach for this as path is dynamic here How cou...

Views

133

Likes

0

Replies

6
Re: MockitoJUnitRunner bind for WCMUsePojo fails for curr...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks for looking into it.I see that local build on cmd is working properly like IDE no issues only when the build is ran on CI tool then binding fails and i need to have check for binding.for CI tool Thanks

Views

105

Likes

0

Replies

0
Re: MockitoJUnitRunner bind for WCMUsePojo fails for curr...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi ,Thanks for looking into .Could you please help if possible without more details on CI tool as I see when i see JMockit then CI is able to get those current page and resource without any issue. Not sure when i am doing binding with MockitoJUnitRunner then it is not picking the binding values,till i do something like currentPage=getCurrentPage()if(null==currentPage){ currentPage=(Page)this.get(WCMBindings.CURRENT_PAGE, Page.class);} @RunWith(JMockit.class) import com.adobe.cq.sightly.WCMUsePoj...

Views

122

Likes

0

Replies

0
Re: MockitoJUnitRunner bind for WCMUsePojo fails for curr...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks for the input.Yes getCurrentPage() and getResource() works fine in IDE but not in CI tool. Still facing the same issue Thanks

Views

136

Likes

0

Replies

0
Re: MockitoJUnitRunner for junit in AemContext how to set...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I had one more issue related to this .Any inputs as what could be the reason https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/mockitojunitrunner-bind-for-wcmusepojo-fails-for-currentpage-and/qaq-p/367568#M76329

Views

144

Likes

0

Replies

0
Re: MockitoJUnitRunner for junit in AemContext how to set...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks It worked

Views

163

Likes

0

Replies

0
Re: MockitoJUnitRunner for junit in AemContext how to set...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi,Thanks for the response .The use case is for a component dialog ,i would want to hide it based on groups . This could be achieved by setting cq:noDecoration flag to true This can be achieved byComponentContext cc = WCMUtils.getComponentContext(slingHttpServletRequest);cc.setDecorate(false); I see that the import statement is com.day.cq.wcm.api.components.ComponentContext; Thanks.

Views

189

Likes

0

Replies

0
Re: MockitoJUnitRunner for junit in AemContext how to set...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks for the input .I have still one pending issue will you be able to help on this Java code:-ComponentContext cc = WCMUtils.getComponentContext(slingHttpServletRequest);cc.setDecorate(false); Junit:-I am trying @Mockprivate MockSlingHttpServletRequest request;request = aemContext.request();request.setAttribute("com.day.cq.wcm.componentcontext",aemContext componentContext()); Throws the below error java.lang.ClassCastException: org.apache.sling.testing.mock.osgi.MockComponentContext cannot be...

Views

237

Likes

0

Replies

0
Re: AEM6.3 providing access to group for a particular com...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi Arun , I noticed one more issue when we set using decorate the actual component dialog in hidden in touch ui ,but the top " Inheritance Paragraph System" dialog start showing when we click in the area of the component, but same issue does not happen in classic . Any inputs as how this could be overcome Thanks

Views

82

Likes

0

Replies

0
Re: MockitoJUnitRunner for junit in AemContext how to set...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , Any samples on dummy implementation will help. Thanks

Views

273

Likes

0

Replies

0
Re: MockitoJUnitRunner for junit in AemContext how to set user details
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Sample junit code  will help Thanks

Views

306

Likes

0

Replies

0
MockitoJUnitRunner for junit in AemContext how to set user details
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I am using MockitoJUnitRunner for Junit . I having the below code in java :-User currentUser = request.getResourceResolver().adaptTo(User.class);if(currentUser.isAdmin())return;Iterator currentUserGroups = currentUser.memberOf();while (currentUserGroups.hasNext()) {Group grp = (Group) currentUserGroups.next();if(grp.getID().equals(GROUP)) {-----}} issue:- So want to simulate the user and groups using Aemcontext and want to know how to set up user and group details for AEM context I am using...

Views

333

Likes

0

Replies

12
Re: AEM6.3 providing access to group for a particular com...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, Thanks for the input i did try this but in touch ui dialog it shows copy and delete options,but did remove the configure option by this way

Views

120

Likes

0

Replies

0
AEM6.3 providing access to group for a particular component on a page on author
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, Could some one help me the below query On Author if there is any way that on page where there are many custom components are available.I mean the components that at code level will under /apps/project For a specific component on that page how to restrict the edit access to a particular group . So that users of that particular group can edit the dialog where as for other users the dialog appears hidden or in disabled state Thanks

Views

168

Like

1

Replies

4
Find out all the Heavy query components in AEM6.3
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, Is there any mechanisms in AEM6.3 through which we can find out customs query s that is consuming too much time to respond back even though we have good network. The purpose is that we would want to improve page load time Thanks

Views

290

Likes

0

Replies

4
Re: AEM 6.3 Junit with javascript
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi,Thanks for the input .I am looking for javascript testing .As you mentioned jest will be helpful.I am using AEM6.3 version can i use jest also if there any more examples on jest with aem help.I could not understand from the example assume i am having javascript located at /etc/clients/comoponent/abc/abc.js then how to write test case . Does jest support even css testing?? Thanks

Views

190

Likes

0

Replies

0
Re: AEM 6.3 Junit with javascript
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi,Thanks for the input.I am looking any option where we could write test case for javascript file functions,It would be helpful if the same is supported in upcoming versions of AEM. Any git sample codes will be helpful Thanks again

Views

172

Likes

0

Replies

0