Author: jaz
Date: Thu Jan 4 02:11:25 2007
New Revision: 492497
URL:
http://svn.apache.org/viewvc?view=rev&rev=492497Log:
added BSH script to add a workeffort content wrapper to the context
Added:
ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/actions/content/
ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/actions/content/workEffortContentWrapper.bsh (with props)
Added: ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/actions/content/workEffortContentWrapper.bsh
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/actions/content/workEffortContentWrapper.bsh?view=auto&rev=492497==============================================================================
--- ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/actions/content/workEffortContentWrapper.bsh (added)
+++ ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/actions/content/workEffortContentWrapper.bsh Thu Jan 4 02:11:25 2007
@@ -0,0 +1,31 @@
+/*
+ *
+ * Copyright 2001-2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ *
http://www.apache.org/licenses/LICENSE-2.0+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ */
+
+ import org.ofbiz.workeffort.content.*;
+ import org.ofbiz.base.util.*;
+ import org.ofbiz.entity.*;
+ import java.util.*;
+
+ workEffort = context.get("workEffort");
+ if (workEffort == null && workEffortId != null) {
+ workEffort = delegator.findByPrimaryKeyCache("WorkEffort", UtilMisc.toMap("workEffortId", workEffortId));
+ }
+
+ if (workEffort != null) {
+ wrapper = WorkEffortContentWrapper.makeWorkEffortContentWrapper(workEffort, request);
+ context.put("workEffortContentWrapper", wrapper);
+ }
\ No newline at end of file
Propchange: ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/actions/content/workEffortContentWrapper.bsh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/actions/content/workEffortContentWrapper.bsh
------------------------------------------------------------------------------
svn:keywords = "Date Rev Author URL Id"
Propchange: ofbiz/trunk/applications/workeffort/webapp/workeffort/WEB-INF/actions/content/workEffortContentWrapper.bsh
------------------------------------------------------------------------------
svn:mime-type = text/plain