/**
* renders
* //onclick="checkbox_clicked(this, '$rhnSet')"
*
*/
private String getOnClickScript(String funcName, String boxName) {
Object current = getCurrent();
Object parent = getParentObject();
String childIds = "[]";
String memberIds = "[]";
String parentId = "";
ListTag parentTag = (ListTag)
BodyTagSupport.findAncestorWithClass(this, ListTag.class);
if (RhnListTagFunctions.isExpandable(current)) {
childIds = getChildIds(current);
}
else {
parentId = getParentId(current, parent);
memberIds = getMemberIds(current, parent);
}
return String.format(CHECKBOX_CLICKED_SCRIPT, funcName, boxName,
rhnSet, makeSelectAllCheckboxId(listName),
childIds, memberIds, parentId,
parentTag.isParentAnElement());
}
SelectableColumnTag.java 文件源码
java
阅读 47
收藏 0
点赞 0
评论 0
项目:spacewalk
作者:
评论列表
文章目录