summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-03-09 06:53:46 (EST)
committerManik Kishore2012-06-19 07:20:15 (EDT)
commitb487cd9ad9aa77291b0736c123b4d6ae79543a23 (patch)
tree7e9c2fe8d4a98ebede884b1cdd303d6dee26487b
parent809097b7e5c56db3a6e8cd0bf3168f215d3d5ff9 (diff)
downloadorg.eclipse.stardust.ui.web-b487cd9ad9aa77291b0736c123b4d6ae79543a23.zip
org.eclipse.stardust.ui.web-b487cd9ad9aa77291b0736c123b4d6ae79543a23.tar.gz
org.eclipse.stardust.ui.web-b487cd9ad9aa77291b0736c123b4d6ae79543a23.tar.bz2
Jira-ID: CRNT-24098
1)Removed method attachToCase from ProcessHistoryTable.java and added in CaseDetailsBean.java. 2)Changed class reference for attachToCase from caseDetailsViewToolbar.xhtml git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@54429 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessHistoryTable.java10
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java10
-rw-r--r--views-common/src/main/resources/META-INF/xhtml/views/case/caseDetailsViewToolbar.xhtml4
3 files changed, 12 insertions, 12 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessHistoryTable.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessHistoryTable.java
index fb03132..6518ae0 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessHistoryTable.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/process/history/ProcessHistoryTable.java
@@ -176,16 +176,6 @@ public class ProcessHistoryTable extends UIViewComponentBean
}
/**
- *
- */
- public void attachToCase(ActionEvent event)
- {
- List<ProcessInstance> selectedProcesses = CollectionUtils.newArrayList();
- selectedProcesses.add(getSelectedRow().getProcessInstance());
- ProcessInstanceUtils.openAttachToCase(selectedProcesses);
- }
-
- /**
* @param event
*/
public void selectRow(ActionEvent event)
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java
index 72fb475..36d04d2 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java
@@ -319,6 +319,16 @@ public class CaseDetailsBean extends PopupUIComponentBean
/**
*
+ */
+ public void attachToCase(ActionEvent event)
+ {
+ List<ProcessInstance> selectedProcesses = CollectionUtils.newArrayList();
+ selectedProcesses.add(processInstance);
+ ProcessInstanceUtils.openAttachToCase(selectedProcesses);
+ }
+
+ /**
+ *
* @param ae
*/
public void detachFromCase(ActionEvent ae)
diff --git a/views-common/src/main/resources/META-INF/xhtml/views/case/caseDetailsViewToolbar.xhtml b/views-common/src/main/resources/META-INF/xhtml/views/case/caseDetailsViewToolbar.xhtml
index 05c0ee3..bb54d35 100644
--- a/views-common/src/main/resources/META-INF/xhtml/views/case/caseDetailsViewToolbar.xhtml
+++ b/views-common/src/main/resources/META-INF/xhtml/views/case/caseDetailsViewToolbar.xhtml
@@ -45,8 +45,8 @@
styleClass="toolbar-button" />
<pc:automationTag value="auto-COM-CaseDetView-ToolbarAttachToCase"/>
- <ice:commandLink actionListener="#{processHistoryTable.attachToCase}"
- rendered="#{processHistoryTable.enableCase and caseDetailsBean.canManageCase}"
+ <ice:commandLink actionListener="#{caseDetailsBean.attachToCase}"
+ rendered="#{caseDetailsBean.canManageCase}"
disabled="#{caseDetailsBean.inactiveCase}" >
<ice:graphicImage
url="/plugins/views-common/images/icons/case-attach.png"