我真的很想学习"Adobe CQ".我的问题是,我需要学习哪些技术来理解adobe cq.
有关Adobe CQ和相关技术的任何教程都很有帮助.
谢谢你,斯里兰卡
谁能告诉我之间有什么区别
依赖vs导入包vs嵌入依赖
我真的迷失了示例osgi包的pom文件。
如果使用默认的maven <import-package>*</import-package>语句,则解决对其他捆绑软件的依赖性。
为什么需要使用<dependency>element 将包包括在内?
编辑:我没有任何样品可以放在这里。问题是“如何将捆绑作为依赖项来访问不同捆绑中的其package-> services?”
如何获取编辑的所有行?
我有以下内容jqgird,用户可以在其中编辑所有记录的复选框.单击"保存"按钮时,我需要知道编辑的所有记录是什么,我是一个新的jquery和jqgrid.
谁能帮我 ?
这是jqgrid和html使用:
var customerCodesView = {};
customerCodesView.customerCodesView = function() {
$jq("#customerCodesTable").jqGrid(
{
colNames : ['Cust #','Customer Name', '1', '2','3', '4', '5', '6','7', '8','9', '10', '11', '12', '13', '-1'],
colModel : [{name : 'customerNumber',index : 'baseCustomerNumber',width : 55, align :'center'},
{name : 'customerName',index : 'storeName',width : 100, sorttype :'text', align :'center'},
{name : 'creditCodesPermissions.1',index : 'codeOne',width : 40,align : "center", editable:true, edittype:'checkbox', editoptions: { value:"True:False"}, formatter: "checkbox", formatoptions: {disabled : false}},
{name …Run Code Online (Sandbox Code Playgroud) 我在詹金斯创建了一份工作,以便从CVS中查看其中一个项目.
它显示进度条并永远运行,永远不会停止,这是我在日志中看到的消息:
Started by user anonymous [workspace] $ cvs -Q -z3 -d :sserver:<username>:<passwd>@str2-dev-cvsbug:/cvsrepo co -P -D "Tuesday, September 6, 2011 3:02:43 PM UTC" core-module
Run Code Online (Sandbox Code Playgroud)
我刚刚重命名了用户名,passwd和cvsrepo,模块名称.
在Windows资源管理器中,我看到该模块已检出,因为我看到所有文件夹上的最新时间戳.
环境:
Jenkins 1.410
Tortoise CVS 1.9.8
JBoss AS 5.1
Run Code Online (Sandbox Code Playgroud) 我有组件层次结构 parsys -> parentcomp -> childcomp
parentcomp节点有一些属性.我试图parentcomp在childcomp级别访问父属性.
我不知道该怎么做.
任何想法如何获得父节点属性.我知道下面的代码,给我一个父节点作为选择器之一的路径.但是,不确定如何获取确切的特定节点并读取这些属性.
<%= currentNode.getPath() %>
Run Code Online (Sandbox Code Playgroud)
谢谢你,斯里兰卡
我有一个cq页面,其中包含一个使用的组件 <cq:include />
我想在页面加载时打开包含的组件对话框,而不是等待作者双击组件区域.
谢谢你,斯里兰卡
我在单盒 cq5 作者环境中遇到以下异常。
javax.jcr.InvalidItemStateException: Item cannot be saved
because node property has been modified externally
Run Code Online (Sandbox Code Playgroud)
更多异常详情:
Caused by: javax.jcr.InvalidItemStateException: Unable to update a stale item: item.save()
at org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:262)
at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
at org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveOperation.java:65)
at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:361)
at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:812)
at com.day.crx.core.CRXSessionImpl.save(CRXSessionImpl.java:142)
at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.commit(JcrResourceProvider.java:511)
... 215 more
Caused by: org.apache.jackrabbit.core.state.StaleItemStateException: 3bec1cb7-9276-4bed-a24e-0f41bb3cf5b7/{}ssn has been modified externally
at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:679)
at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1507)
at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:1537)
at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:400)
at org.apache.jackrabbit.core.state.XAItemStateManager.update(XAItemStateManager.java:354)
at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:375)
at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:275)
at org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:258)
Run Code Online (Sandbox Code Playgroud)
这是代码示例:
adminResourceResolver = resourceResolverFactory
.getAdministrativeResourceResolver(null);
Resource fundPageResource …Run Code Online (Sandbox Code Playgroud) 我正在查看我的项目页面加载改进,我确实看到 utag.js 和 utag.sync.js 都加载了。
utag 和 utag.sync.js 是否都是 Tealium 集成所需的 javascript 文件。
如果两者都需要,那为什么?这两个js的目的是什么,区别是什么?
谢谢,斯里
我在属性文件中有消息,并使用spring和spring消息标记读取这些属性文件,
例如,我有:
key.red=Red<br>
key.blue= blue
Run Code Online (Sandbox Code Playgroud)
蓝色消息文本显示为"蓝色"但不是"蓝色".弹出的前导空格是:spring标签.
我怎么能保留领先的空间?我感谢任何帮助
谢谢,
斯里兰卡
我有一个独特的位置对象集,数据如下
location 1: "USA", "AZ", "Phoenix"
location 2: "USA", "AZ", "Scottsdale"
location 3: "USA", "AZ", "Peoria"
Front end needs following json structure to render UI:
"USA"-> [{"AZ" -> ["Phoenix", "Scottsdale","Peoria"]},
{"MD" -> ["Baltimore", "Gaithersburg","OwingsMills"]}
]
Run Code Online (Sandbox Code Playgroud)
适用于Location.java的Java POJO
我编写了几行代码来迭代位置集,并使用FacetsGeo对象构造了包含状态对象集的国家对象(包含城市对象的集合),并从此数据模型中生成json。
我在想,可能会有更好的方法:可能是使用Java 8 Streaming API。
正如我上面所说的,任何帮助表示赞赏,都是示例数据,如何构建平坦的位置。
public class Location {
private final String country;
private final String state;
private final String city;
public Location(final String country, final String state, final
String city) {
this.country = country;
this.state = state;
this.city = city;
} …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用以下sling servlet http://localhost:4502/sling/test-services/planet.html
但是,它给出了404错误,不知道我在这里做错了什么.
@Component
@Service(value=javax.servlet.Servlet.class)
@Properties({
@Property(name="service.description", value="HTML renderer for Planet resources"),
@Property(name="service.vendor", value="The Apache Software Foundation"),
@Property(name="sling.servlet.resourceTypes", value="sling/test-services/planet"),
@Property(name="sling.servlet.extensions", value="html"),
@Property(name="sling.servlet.methods", value="GET")
})
@SuppressWarnings("serial")
public class PlanetResourceRenderingServlet extends SlingSafeMethodsServlet {
@Override
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");
final ValueMap properties = request.getResource().adaptTo(ValueMap.class);
// TODO should escape output - good enough for our tests
final PrintWriter pw = response.getWriter();
pw.println(String.format("<html><head><title>Planet at %s</title></head><body>", request.getResource().getPath()));
pw.println(String.format("<p>Name: %s</p>", properties.get("name")));
pw.println(String.format("<p>Distance: %s</p>", properties.get("distance")));
pw.println("</body></html>");
pw.flush();
}
} …Run Code Online (Sandbox Code Playgroud) 我有以下button.json
{
"component": {
"button": {
"padding": { "value": "{size.padding.medium.value}" },
"font-size": { "value": 2 },
"text-align": { "value": "center" },
"primary": {
"background-color": { "value": "hsl(10, 80, 50)" },
"color": { "value": "{color.font.inverse.value}" }
},
"secondary": {
"background-color": { "value": "{color.background.primary.value}" },
"color": { "value": "{color.font.link.value}" }
}
}
}
Run Code Online (Sandbox Code Playgroud)
我可以使用亚马逊样式字典生成样式标记。我想要生成的是 json 中的完整 sass css。
例如:
.component-button {
padding: " ";
font-size: " ";
& .primary {
background-color: "",
color: ""
}
}
Run Code Online (Sandbox Code Playgroud)