Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all 12476 articles
Browse latest View live

Nothing shows in sidekick inspite of the design selection

$
0
0

Additional update-  If the same page, I view it in preview and revert back to authoring mode, sidekick gets populated. So preview does the trick of sidekick population but not on all the templates. For few, the sidekick stays empty all times but parsys has the component list from design.

 

Hello,

 

     I have a template which has usual header/footer/leftnav embedded in it. In the body of the template there are two components. First is embedded global headline component and next is a parsys component. I go in design and identify the components that will be part of parsys and save it. There are two things happening here.

 

1. No matter what I do, sidekick doesnot populate at all and is always empty.

 

2. If I directly go to the parsys and righclick on new, another popup comes that lists all the selected component identified in the design. So I can create the content directly from parsys but not from sidekick.

 

Why is sidekick empty? How can that be fixed? I have attached the code.

 

<%@ include file="/apps/homesite/components/global.jsp" %>

  <cq:includeClientLib categories="820subNav"/>

<section id="content" class="container_12 clearfix">

          <aside id="leftSubNav" class="twoCol">

                      <cq:include path="leftnav" resourceType="homesite/components/leftnav"/>

          </aside>

          <div id="content-wrapper" class="tenCol">

        <div id="subIndustry" class="mainPadding">

          <cq:include path="globalheadline" resourceType="/apps/homesite/components/globalheadline"/>

          <cq:include path="subindustries" resourceType="/apps/homesite/components/parsys"/>

          <%--For this section of content created in parsys, sidekick will have video and multiple lists with no links --%>

        </div>

          </div>

</section>

<cq:include path="collateralcarousal" resourceType="/apps/homesite/components/insights/collateralcarousel"/>

 

 

Thanks


how to add values to multi valued properties using JSP

$
0
0

Hi,

 

I am able to use a multi valued property in JSP which is populated manually using CRXDE. I am able to set the multi valued property only by completely replacing it, but not by appending values to it.

 

Can you please help me to append values to the multi valued property?

 

Thanks in advance,

Rajesh.

Activation of page failing due replication

$
0
0

I am trying to activate camapign or articles but failed to do so. Earlier i used to do but facing below error:

Please help me to resolve.

ReplicationOptions{synchronous=false, revision='null', suppressStatusUpdate=false, suppressVersions=false, filter=null, aggregateHandler=null}

04.12.2012 04:04:26.989 *ERROR* [172.16.119.96 [1354611866971] POST /bin/replicate.json HTTP/1.1] com.day.cq.replication.impl.servlets.CommandServlet Error during replication: Unable to create version for /content/Intranet/News/2012/11/12112__lookbacktest (v2). com.day.cq.replication.ReplicationException: Unable to create version for /content/Intranet/News/2012/11/12112__lookbacktest (v2).

        at com.day.cq.wcm.core.impl.VersionManagerImpl.preprocess(VersionManagerImpl.java:293)

        at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:317)

        at com.day.cq.replication.impl.servlets.CommandServlet.doPost(CommandServlet.java:109)

        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.ja va:148)

        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:344)

        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:375)

        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:491)

        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:147)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:334 )

        at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:152)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:280)

        at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

        at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:287)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:96)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:119)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:84)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.jav a:76)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:171)

        at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:199)

        at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)

        at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)

        at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

        at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:249)

        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

        at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)

        at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)

        at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

        at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

        at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate. java:277)

        at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:150)

        at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:228)

        at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)

        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)

        at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilte r.java:96)

        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)

        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)

        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)

        at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)

        at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134 )

        at java.lang.Thread.run(Thread.java:662)

Caused by: com.day.cq.wcm.api.WCMException: Unable to create version.

        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1145)

        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1027)

        at com.day.cq.wcm.core.impl.VersionManagerImpl.preprocess(VersionManagerImpl.java:290)

        ... 64 more

Caused by: javax.jcr.version.VersionException: Node 0868d5ce-7c75-4db8-824d-40e392405820 has no version history

        at org.apache.jackrabbit.core.version.InternalVersionManagerBase.calculateCheckinVersionName (InternalVersionManagerBase.java:701)

        at org.apache.jackrabbit.core.version.InternalVersionManagerBase.internalCheckin(InternalVer sionManagerBase.java:637)

        at org.apache.jackrabbit.core.version.InternalVersionManagerBase.checkin(InternalVersionMana gerBase.java:610)

        at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$4.run(InternalVersionManage rImpl.java:411)

        at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$DynamicESCFactory.doSourced (InternalVersionManagerImpl.java:713)

        at org.apache.jackrabbit.core.version.InternalVersionManagerImpl.checkin(InternalVersionMana gerImpl.java:407)

        at org.apache.jackrabbit.core.version.InternalXAVersionManager.checkin(InternalXAVersionMana ger.java:236)

        at org.apache.jackrabbit.core.version.VersionManagerImplBase.checkoutCheckin(VersionManagerI mplBase.java:188)

        at org.apache.jackrabbit.core.VersionManagerImpl.access$100(VersionManagerImpl.java:73)

        at org.apache.jackrabbit.core.VersionManagerImpl$1.perform(VersionManagerImpl.java:122)

        at org.apache.jackrabbit.core.VersionManagerImpl$1.perform(VersionManagerImpl.java:115)

        at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)

        at org.apache.jackrabbit.core.VersionManagerImpl.perform(VersionManagerImpl.java:96)

        at org.apache.jackrabbit.core.VersionManagerImpl.checkin(VersionManagerImpl.java:115)

        at org.apache.jackrabbit.core.VersionManagerImpl.checkin(VersionManagerImpl.java:101)

        at org.apache.jackrabbit.core.NodeImpl.checkin(NodeImpl.java:2856)

        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1093)

 

Message was edited by: Yogesh

Received 409 (Conflict) for saving changes in workspace crx.default

$
0
0

When i creat a new jsp file and save the file  , i get the following error on CRXDE lite  :

 

Could not save changes. Received 409 (Conflict) for saving changes in workspace crx.default. This node already exists: /content/TrainingSite/contentpage.jsp

 

Can anybody please suggest the cause of the problem and the meaning of the code.

 

 

Thanks

Regd:org.apache.sling.api.scripting.ScriptEvaluationException: javax.servlet.ServletException

$
0
0

Hi ,

 

I'm getting the below exception while accessing the pages. It was working fine earlier..

 

Any help on this please....???

 

Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Error while executing script /libs/wcm/core/components/init/init.jsp

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:563)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:499)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:443)

at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)

at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :233)

at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:85)

at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:453)

at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)

... 93 more

Caused by: org.apache.sling.api.SlingException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/day/cq/wcm/api/WCMMode

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:563)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:499)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:443)

at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)

at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :233)

at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:85)

at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:453)

at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:358)

at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:170)

at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 56)

at com.day.cq.wcm.tags.IncludeTag.includeScript(IncludeTag.java:167)

at com.day.cq.wcm.tags.IncludeTag.doEndTag(IncludeTag.java:87)

at org.apache.jsp.apps.bt_com.components.wrapperpage.wrapperpage_jsp._jspx_meth_cq_005finclu de_005f0(wrapperpage_jsp.java:430)

at org.apache.jsp.apps.bt_com.components.wrapperpage.wrapperpage_jsp._jspService(wrapperpage _jsp.java:238)

at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:420)

... 98 more

Caused by: java.lang.NoClassDefFoundError: com/day/cq/wcm/api/WCMMode

at org.apache.jsp.libs.wcm.core.components.init.init_jsp._jspService(init_jsp.java:152)

at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJs

 

Thanks,

 

Shankar .A

Allowed Components list in parsys design not same in /content and /etc/cloudservices/sitecatalyst

$
0
0

For any template that is under /content, when I go in the design mode, I see a long list of allowed components available for selection. I have a new component group created and around 16 new components show up in that list for design selection.

 

But when I open the sitecatalyst page configured under  /etc/cloudservices/sitecatalyst, under the design mode, for the same component group I only see two components in the allowed component list. So I can only select from these two components in the design. I tried to compare the properties of other 14 components with these 2 components. But there is nothing that stands out as the discrepency.

 

Does anyone know, why the component list available in the parsys design is different for the same component group under /content and under  /etc/cloudservices/sitecatalyst.

Delegate Workflow to Group doesn't working?

$
0
0

Hi,

 

i want to delegate a Workflow to a user group like its described here: http://dev.day.com/docs/en/cq/current/workflows/wf-using.html#Delegating a Participant Step.

 

For example i have the group "revisor" and the users "revisor1" and "revisor2" which both are included in the group "revisor". My participant Step is set to the group "revisor".

 

When i start my workflow it is correctly displayed in the workflow inbox for the users.

 

Problem is that when i want to delegate the workflow to the group "revisor" the group itself is not displayed in the drop down list, but it should if my understanding is correct:

 

If a group has been defined, then the list shows the group itself and all individual users within the group. You can delegate to either the entire group, or an individual user within that group.

 

The users of the group are displayed.

 

This behavior is the same as administrator.

 

 

So, is my understanding wrong or did i missed something?

 

Thanks

Event listener when a particular field value changes in dialog

$
0
0

Hi there,  Issue is that I need to change a jcr property when a specific field value is changed in dialog. Since all the fileds are modified / rewriten in jcr when the dialog is saved, i can not identify the modification on a particular field.


How to custom the ok button in the edit dialog

$
0
0

Hi Team:

I want to log down the user's action when user after edit the attribute in the edit dialog,how to do that?

any suggestions/pointers to solve this problem would be appreciable.

Custom Workflow - Creating Nodes with ECMA script

$
0
0

Hey y'all,

 

I'm working in CQ5.5 on a custom workflow in an ecma file to do the following:

Given the creation of a page of template type A, automatically create a page of template type B and populate some of the content from page A into page B. I have no problem creating the page but when I go to insert content, it is not giving me a node called test under jcr:content, like I would expect. Anyone have any ideas?

 

     //this code works

    var resolver = sling.getService(Packages.org.apache.sling.jcr.resource.JcrResourceResolverFactory).getRe sourceResolver(session);

    var pageManager = resolver.adaptTo(Packages.com.day.cq.wcm.api.PageManager);

     // get containing page in /content/usergenerated

    var containingPage = pageManager.getContainingPage(path);

    var newPage = pageManager.create(path, containingPage.getName(), template, containingPage.getTitle());

 

     // below code doesn't work

    var jcrUtil = sling.getService(Packages.org.apache.sling.jcr.resource.JcrResourceUtil);

    jcrUtil.createPath(newPage.getPath() + "/jcr:content/test", null, null, session, true);

@Reference annotation causing customised servlet stop getting called

$
0
0

Hi guys,

 

I noticed that as soon as I add the @Reference annotation in my servlet, the sevlet will not be called when the form is submitted. As soon as I remove @Reference the servlet will be called. But the email will not function because @Reference is required to make the email to work.

 

I have the servlet registered and briefly it looks like below:

 

@Service(value = Servlet.class)

@SlingServlet(

                    resourceTypes = {"myapp/components/content/faqNewQuestions"},

                    methods = {"POST"},

                    selectors = {"email"},

                    extensions = {"html"}

                    )

 

@SuppressWarnings("serial")

public class FAQNewQuestionServlet extends SlingAllMethodsServlet {

 

@Reference

          private MessageGatewayService messageGatewayService;

 

@Override

    protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException

    {

              response.setContentType("text/plain");

              response.getOutputStream().print("FAQNewQuestionServlet is called");

    }

}

 

MessageGatewayService is imported through:

import com.day.cq.mailer.MessageGatewayService;

 

This package is added to the .bnd file under:

Import-Package: ..., com.day.cq.mailer, org.apache.felix.scr,org.apache.felix.scr.annotations,...

 

the faqNewQuestions.jsp (which lives under apps/myapp/components/content/faqNewQuestions) has a form looks like this:

 

<form method="POST" action="<c:out value="${resource.path}" />.email.html">

          <input type="text" id="email" name="email"/>

          <textarea name="question" id="question"></textarea>

          <input class="button" id="questionSubmit" type="submit" value="submit" />

</form>

 

I just keep getting 'Content modified' page rather seeing the "FAQNewQuestionServlet is called" I was expecting.

 

Content modified /content/my-trick/jcr:content/par/faqnewquestions

Status

200

Message

OK

Location/my-trick/_jcr_content/par/faqnewquestions
Parent Location/my-trick/_jcr_content/par

 

Really appreciate any inputs..

sling:ResourceSuperType foundation/components/page

$
0
0

Hi Everybody,

 

I'm new to CQ and really enjoying it.  I have a question if someone can please help?

 

Can anyone help me understand how sling resolves a page component that has a resourceSuperType of  foundation/components/page ?  I created a page structure similar to the geometrixx pages, and have the following page component.

 

components/page/contentpage

body.jsp

content.jsp

footer.jsp

header.jsp

 

Therefore I discovered that I can override the body.jsp as this is the page selected by sling (I originally had contentpage.jsp).  Also using this structure I understand that if I have another template and page component I just extend the above "contentpage" component and override "content.jsp" keeping my web site structure (Nice!).

 

But what I don't understand is how how sling resolves to the body.jsp as the preferred script in the first place? Can anyone help me understand?

 

Thanks

Darren

Publish permissions

$
0
0

We have a project being migrated from CQ4 to CQ5.  We are trying to understand how people manage their permissions on the publisher.


In CQ4, the permissions were associated with the user/group and replicated easily from author, so we could define the rules in author and just activate them.


In CQ5, the permissions are associated with the content, but when you activate the page, the permissions are not replicated.


Adobe says the reason for this is :

"Page permissions are not replicated because they are stored under the nodes to which access is granted, not with the user.

In general page permissions should not be replicated from the author to publish and are not by default. This is because access rights should be different in those two environments. Therefore it is recommended to configure ACLs on publish separately from author.
"

See http://helpx.adobe.com/cq/kb/PagePermissionsNotReplicatedWithUser.html


However, they don't say how exactly one should "configure ACLs on publish separately from author"


So what to do ?


1) One way would seem to be to create a package of just the permissions and then manually install this package on each publish instance.

Just activating the package would appear not to work

This has the disadvantage that the sys admin has to log in directly to each publisher to install the packages, and it becomes a "deployment" task to change permissions


2) Login to the publishers and apply the access rights directly on each publisher.

This has similar problems to the one above, and might have timing issues, e.g. when a page is activated by a user


3) we could use Closed User groups.

Whilst this would seem to work for a limited extent, it seems the limitations might be too much for us.

E.g. If we have a Closed User Group for the intranet, and then within the intranet we have a section for HR only, we would want 2 groups, one

for "intranet-users" which would have access to

/content/intranet/en

and one for "intranet-hr-users". which would have access to

/content/intranet/en/hr


From what I can tell a member of "intranet-users" automatically gets access to everything underneath /content/intranet/en so would have access to all the HR content too


Also with Closed User Groups, how do I get an overview of what permission a particular user or group has ? 



4) There is a utility package to create packages based on an XPATH which might help with 1) but still has the same issue of direct deployment to publish.




TBH, I am not sure really why the permissions cannot be replicated.

Normally we would just assign users to groups and assign groups permission to read the pages, on publish users would not be members of the "authoring" groups so there wouldn't be a problem.


Is there a workaround or hotfix ?



Dev.

Receiving a SSL Exception warning even though a valid certificate exists for the instance

$
0
0

Hi All,

I am getting the following exception as soon as i installed a sertificate via the Keytool in our client environment. The instance is running and is accessible over https

 

However, the browser is throwing a security warning and the server log is printing out this exception

 

*WARN * servletengine: I/O error in execution: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

 

Any suggestions on resolving this?

 

Thanks,

Ravi

Using AngularJS with Adobe CQ

$
0
0

Has anyone else tried creating single-page applications with AngularJS and Adobe CQ? I'm finding the combination difficult to work with when trying to keep the advantages of the CQ authoring tool. I'm hoping that someone here can relate some of their best practices.

 

In a nutshell, here is the conundrum I'm running into.

 

I'm using AngularJS routes to pull "partial" pages into a view. This is working properly in CQ at the moment, using a set of components, one per partial, linked to a super resource type and template which are emtpy. I have pages declared for each partial in the site tool, and their resourceType is declared properly. The end result is each partial is being pulled without any unnecessary header/footer information being added. That's all good. The problem comes when viewing the site in the authoring tool.

 

The way it's set up is that I have a main template component which draws the site header and footer, including all the script and style tags, then includes a parsys in the middle of the page. Into that parsys I've dropped an instance of a component I created that i'm calling "angularview". It contains nothing but:

 

<div data-ng-view></div>

 

Those familiar with angular will recognize this as a simple view declaration. This is the container tag for angular to drop the currently selected view into based on the route configuration.

 

The way this renders on screen is a header, a blank section, and a footer. All the sub-component partials used by AnguarJS are hidden from the author, and I see no way to obvious way to present them.

 

The only thing I've been able to think of is to add dialogs for each of the partials so that they appear in the sidekick, then create a dummy page in which I drop all the partials. Maybe I could just code them in using <cq:component>, then declare each partial as a container component? This is where I'm hoping someone can offer some advice. What's the best way to go here?


How to avoid extra div tags, when we add components using

$
0
0

I tried using the below code in my component jsp from forums to remove those extra div tags when we try to add components using <cq:include tags.

 

<%

 

   if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {

       IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE);

 

 

    }

 

%>

 

 

But this code helped to remove most of the extra div tags , but still adds this extra div tag to the first component I add using  <cq:include tag.

 

its a basic and very critical necessity to maintain our markup design,But due to this  dynamically added extra div tag will hinder the html and css behaviour of the page.

Appreciate your help to resolve this issue.

 

Thanks

Plugin execution not covered by lifecycle configuration

$
0
0

Hello.

 

I'm trying to follow the steps in [1], "How-To Build AEM Projects using Apache Maven".

 

Now, I'm following the step "Compiling JSPs as part of the Maven Compile Phase", in "HOW-TO WORK WITH JSPS" section.

 

When I paste the "maven-jspc-plugin" and "remove-compiled-jsps" plugins sections to "myproject/content/pom.xml" (see [2]), I found these errors in Maven Console (I'm working with Eclipse):

 

Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (execution: remove-compiled-jsps, phase: process-classes)

Plugin execution not covered by lifecycle configuration: org.apache.sling:maven-jspc-plugin:2.0.6:jspc (execution: compile-jsp, phase: compile)

 

Somebody with the same issue? Any advise to solve it?

 

Thank you very much.

 

[1] http://dev.day.com/docs/en/cq/aem-how-tos/development/how-to-build-aem-projects-using-apac he-maven.html

 

[2]

 

plugins.png

OSGI bundle creation using third party jar files

$
0
0

Hi,

 

I have a requirement to integrate our CQ5.5 based application with a third party. As part of this, I have to use some jar files. After lot of digging, I realised that the way to use external jar files is to create an OSGI bundle wrapping these jar files.

So, I tried to do the same, but when I see the service details in system/console, I see errors. Can someone please suggest what could have gone wrong?

 

I have to use 3 jar files. So, I placed them in lib folder as shown in the screenshot below.

1.png

 

Ibuilt the bundle using .bnd file. It generated a jar file in install folder and I am able to to see its details in system/console/bundles. When I try to view details of the OSGI bundle that is installed, I see errors as follows:

2.png

Using multi-value properties in JSP components

$
0
0

I am trying to figure out if I am doing some small step wrong or if I don't have a full grasp on how some things work.

 

I am accessing a multi-value property from the JSP of my component:

 

<%@include file="/libs/foundation/global.jsp" %>

    <h2>Keys</h2>

    <div class="container_16">

        <div class="grid_8"><%

Object keysObj = properties.get("keys");

if (keysObj != null)

{

String[] keys = (String[]) keysObj;

%>

<%= keys %><%

} %></div>

</div>

 

Here is how I defined my component:

 

{

     "jcr:createdBy":"admin",

     "jcr:title":"My Listing",

     "allowedParents":["*/*parsys"],

     "componentGroup":"Listing Group",

     "sling:resourceSuperType":"foundation/components/parbase",

     "jcr:created":"Wed Aug 15 2012 20:01:15 GMT-0400",

     "jcr:primaryType":"cq:Component",

     "keys":[""]

}

 

So keys is a multi-value String object. I am supposing the value is a String[].

 

I created a dialog to set the values within the CQ page edit.

 

- myList

--- dialog [cq:Dialog]

----- items [cq:Widget]

------- items [cq:WidgetCollection]

--------- tabs1 [cq:Panel]

----------- items [cq:WidgetCollection]

------------- keys [cq:Widget]

 

The keys cq:Widget is defined as:

 

{

     "fieldLabel":"Keys to List",

     "xtype":"multifield",

     "name":"./keys",

     "jcr:primaryType":"cq:Widget",

     "fieldDescription":"List keys to display"

}

 

I placed the component into an existing geometrixx page to test. When I double-clicked on it I was able to add multiple values.

 

It is failing when I attempt to coerce the properties.get method to a String[]: String[] keys = (String[]) keysObj;

 

16.08.2012 11:58:29.444 *ERROR* [10.176.196.66 [1345132705084] GET /content/geometrixx/en/services.html HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Error during include of SlingRequestPathInfo: path='/content/geometrixx/en/services/jcr:content/par/keylist', selectorString='null', extension='html', suffix='null' org.apache.sling.api.scripting.ScriptEvaluationException: An exception occurred processing JSP page /apps/myList/components/keyList/keyList.jsp at line 14

<snip stack trace>

Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

 

So all that leads to my question.

 

It looks like I am wrong on how to coerce the results of properties.get to a String[]. What is the best way to work with multi-value properties? I want to iterate through the values in the multi-value property.

 

Should I have specified the index in the method?

---- properties.get("keys[0]");

 

Thanks!

Only a type can be imported. org.apache.felix.scr.annotations.Component resolves to a package

$
0
0

I copied the example code exactly, but it won't compile. I receive errors on all the annotations, like:

"Only a type can be imported. org.apache.felix.scr.annotations.Component resolves to a package"

and

"Component cannot be resolved to a type"


-------------------------------------------------------------------------

package com.day.cq.wcm.apps.geometrixx.impl;


import com.day.cq.workflow.WorkflowException;

import com.day.cq.workflow.WorkflowSession;

import com.day.cq.workflow.exec.WorkItem;

import com.day.cq.workflow.exec.WorkflowData;

import com.day.cq.workflow.exec.WorkflowProcess;

import com.day.cq.workflow.metadata.MetaDataMap;

import org.apache.felix.scr.annotations.Component;

import org.apache.felix.scr.annotations.Properties;

import org.apache.felix.scr.annotations.Property;

import org.apache.felix.scr.annotations.Service;

import org.osgi.framework.Constants;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;


import javax.jcr.Node;

import javax.jcr.RepositoryException;


/**

* Sample workflow process

*/

@Component

@Service

@Properties({

@Property(name = Constants.SERVICE_DESCRIPTION, value = "A sample workflow process implementation."),

@Property(name = "process.label", value = "Sample Workflow Process")})


public class CustomWorkflow implements WorkflowProcess {


private static final String TYPE_JCR_PATH = "JCR_PATH";

private static final Logger log = LoggerFactory.getLogger(CustomWorkflow.class);


public void execute(WorkItem item, WorkflowSession session, MetaDataMap args) throws WorkflowException {

WorkflowData workflowData = item.getWorkflowData();

if (workflowData.getPayloadType().equals(TYPE_JCR_PATH)) {

String path = workflowData.getPayload().toString();

// More code here

}

}


}

 

Errors :

 

DescriptionResourcePath
Component cannot be resolved to a type.java/li
Only a type can be imported. org.apache.felix.scr.annotations.Component resolves to a package.java/li
Properties cannot be resolved to a type.java/l
Service cannot be resolved to a type.java


Viewing all 12476 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>