since ‎10-07-2019
Online
srinivas_chann1
Level 4
Re: AEM 6.3 TO detect from desktop or mobile from which t...
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Thanks for the input. Agree to your comments , could you provide any sample code will help me to write this

Views

80

Likes

0

Replies

0
AEM 6.3 TO detect from desktop or mobile from which the request came in java?
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi , I am using a component twice due to mobile and desktop views .Due to which the same JavaScript is getting called twice.I am using JavaScript to hide based on css. I wanted tp know if desktop or mobile view in java code, in this way i will be able to call the component only once based on views using slightly test logic. Please let me know how to achieve it Thanks

Views

124

Likes

0

Replies

4
AEM6.3 Paste not appearing in author for component to copy in touch ui on a page
Avatar

srinivas_chann1

srinivas_chann1
- Adobe Experience Manager
Hi, Could some help as how to resolve this issue.Issue:-I am using aem6.3 on touch ui page when i copy component ,then paste option does not come up Workaround:-As soon as, I do right click on the page, the paste icon immediately appears. And also, when we click on the “Drag Components here” (parsys) then the paste icon appears on all the components. Expected:-Paste icon must appear as soon as I copy any component ,on first click. like it works on classic UI Step1: Copy the desired component. St...

Views

84

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

84

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

141

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

102

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

130

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

121

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

133

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

117

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

137

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

117

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

138

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

131

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

128

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

134

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

152

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

117

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

134

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

148

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

185

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

204

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

230

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

278

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

101

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

314

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

349

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

376

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

138

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

188

Like

1

Replies

4