Thanks Hans,It comes to confuse new developers who start working and find code references which should not be used.
So this needs to be done asap.
Thanks & Regards -- Pranay Pandey On Mar 20, 2009, at 3:39 PM, Hans Bakker wrote:
But you did not tell where this was used, apparently not? The simplest solution is to simply delete these files because they are not used....they are left overs from a previous version of the project manager Regards, Hans On Fri, 2009-03-20 at 04:58 -0500, Pranay Pandey wrote:Thanks Hans for looking into it. Let me explain whats happening. Url which you have given is: https://localhost:8443/projectmgr/control/EditTaskSkills?workEffortId=9103Your url points to the view TaskScreens.xml#EditTaskSkills in which ftl has not been used its using form widget.and In my url I am referring to following request and view: <request-map uri="EditProjectSkills"> <security https="true" auth="true"/> <response name="success" type="view" value="EditProjectSkills"/> </request-map><view-map name="EditProjectSkills" type="screen" page="component:// projectmgr/widget/ProjectScreens.xml#EditProjectSkills"/>Which referes to an ftl by name editProjectskills.ftl. In this file findList has been used and thats not working.Thanks & Regards -- Pranay Pandey ----- "Hans Bakker" <[email protected]> wrote:From: "Hans Bakker" <[email protected]> To: [email protected]Sent: Friday, March 20, 2009 3:03:35 PM GMT +05:30 Chennai, Kolkata, Mumbai, New DelhiSubject: Re: delegator.finlist method doesn't work in ftl Hi Pranay, this is very interesting because i cannot find this url on any link in the system....further, skills are defined on the task level for example: https://localhost:8443/projectmgr/control/EditTaskSkills?workEffortId=9103 and there it is working fine..... so i am very puzzled how you get to this link using the menus...... In the trunk version there are no "projectskills" Regards, Hans On Fri, 2009-03-20 at 04:03 -0500, Pranay Pandey wrote:Thanks Hans, Here is the url:https://localhost:8443/projectmgr/control/EditProjectSkillsThanks & Regards -- Pranay Pandey ----- "Hans Bakker" <[email protected]> wrote:From: "Hans Bakker" <[email protected]> To: [email protected] Sent: Friday, March 20, 2009 2:19:02 PM GMT +05:30 Chennai,Kolkata, Mumbai, New DelhiSubject: Re: delegator.finlist method doesn't work in ftl skill type within project manager is working fine here as i can see... please give me the url and i will have a look.... On Fri, 2009-03-20 at 03:32 -0500, Pranay Pandey wrote:Hello David, Arun is referring to the existing ftl which is in OFBiz trunk,soIMO we should improve the code for those screens in which thishasbeen used in ftls. There are 3 ftls from projectmgr which usesthis.Thanks & Regards -- Pranay Pandey ----- "David E Jones" <[email protected]> wrote:From: "David E Jones" <[email protected]> To: [email protected] Sent: Friday, March 20, 2009 1:39:47 PM GMT +05:30 Chennai,Kolkata, Mumbai, New DelhiSubject: Re: delegator.finlist method doesn't work in ftl Why are you calling it in the FTL file and not in an action inthescreen definition (the normal place to do data preparation,FTL isjust for layout of prepared data). -David On Mar 20, 2009, at 12:17 AM, Arun Patidar wrote:Hello all, When I try to access this requesthttps://localhost:8443/projectmgr/control/EditProjectSkills, getting error. IMO this is because we can not use delegator.findList methodinftl.This has been used like this: <#assign skillTypes = delegator.findList("SkillType", null, null, null, null,false)>If I use it like <#assign skillTypes = delegator.findList("SkillType", NULL, NULL, NULL, NULL,false)>then it works fine. Do we need to change something at framework level. Here is the log: Method public java.util.List org .ofbiz .entity .GenericDelegator .findList (java .lang .String ,org .ofbiz .entity .condition .EntityCondition ,java .util.Set,java.util.List,org.ofbiz.entity.util.EntityFindOptions,boolean)throws org.ofbiz.entity.GenericEntityException threw anexceptionwhen invoked on org.ofbiz.entity.genericdelega...@10b51f4Theproblematic instruction: ---------- ==> assignment: skillTypes=delegator.findList("SkillType", null, null,null,null,false) [on line 36, column 13 incomponent://projectmgr/webapp/projectmgr/project/editProjectskills.ftl] ---------- Javabacktracefor programmers: ---------- freemarker.template.TemplateModelException: Method public java.util.List org .ofbiz .entity .GenericDelegator .findList (java .lang .String ,org .ofbiz .entity .condition .EntityCondition ,java .util.Set,java.util.List,org.ofbiz.entity.util.EntityFindOptions,boolean)throws org.ofbiz.entity.GenericEntityException threw anexceptionwhen invoked on org.ofbiz.entity.genericdelega...@10b51f4 atfreemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:130) atfreemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)atfreemarker.core.Expression.getAsTemplateModel(Expression.java:89)at freemarker.core.Assignment.accept(Assignment.java:90) atfreemarker.core.Environment.visit(Environment.java:209) atfreemarker.core.MixedContent.accept(MixedContent.java:92) atfreemarker.core.Environment.visit(Environment.java:209) atfreemarker.core.Environment.process(Environment.java:189)atPlease correct me if I am wrong. Thanks & Regards -- Arun Patidar-- Antwebsystems.com: Quality OFBiz services for competitive rates-- Antwebsystems.com: Quality OFBiz services for competitive rates-- Antwebsystems.com: Quality OFBiz services for competitive rates
smime.p7s
Description: S/MIME cryptographic signature
