If you have a property and a method with name "itemNumMfr", this sort of messages can appear.
Christian -----Original Message----- From: Savoy, Melinda [mailto:[email protected]] Sent: Friday, June 19, 2009 8:03 AM To: 'Stripes Users List' Subject: Re: [Stripes-users] BeanFirstPopulationStrategy For some reason the JSP code is not going over in Nabble that calls the function I responded with below so I am trying again: <td align="center"><img src="/pics/icon_binoculars.gif" width="17" height="14" alt="Item Number Lookup" onclick="lookup_win('itemNumMfr', document.getElementById('mfrCatNumber${status.index}').value, document.getElementById('mfrName${status.index}').value, '${status.index}');"/></td> -----Original Message----- From: Savoy, Melinda Sent: Friday, June 19, 2009 6:51 AM To: [email protected] Subject: Re: [Stripes-users] BeanFirstPopulationStrategy Richard, Thanks for the reply. Here is the URL and parameters that call the action within a JS function: [CODE] function lookup_win(lookupEntry, param1, param2, param3) { var entry = Lookup.getEntry(lookupEntry); url = "/common/Lookup.action" + "?" + lookupEntry + "=¶ms[0]=" + URLencode(param1); if (param2) url = url + "¶ms[1]=" + URLencode(param2); if (param3) url = url + "&rowId=" + param3; // For Stripes error handling url = url + "&_sourcePage=" + URLencode("/lookup.jsp"); popWin = window.open(url,'lookupwindow','width=' + entry[0] + ',height=' + entry[1] + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no'); setTimeout("moveFocus()", 500); } [/CODE] In the JSP here is how I'm calling this function from an HTML tag and not a stripes tag: [CODE] <td align="center"> /pics/icon_binoculars.gif </td> [/CODE] Again, any help/insight on why the BeanFirstPopulationStrategy is picking up an error would be greatly appreciated. Regards. Richard Hauswald wrote: > > Can you post the request url and parameters you use to call the action? > > On Thu, Jun 18, 2009 at 8:42 PM, savoym<[email protected]> > wrote: >> >> I have an actionBean where I have the following resolution: >> >> public Resolution itemNumMfr() { >> entry = new LookupEntry("itemNumMfr", "Item Lookup", >> new Result[] {new Result("Item >> Number", 20), new Result("Item Description", 30), new Criteria("Mfr >> Cat #", 20, 30), new Criteria("Mfr Name", 30, 30)}, >> new RowMap[] {new RowMap("itemNum" + >> rowId, true), new RowMap("vendorDesc" + rowId, true), new >> RowMap("mfrCatNumber" + rowId, true), new RowMap("mfrName" + rowId, >> true)}); >> >> if (params == null) >> context.addError(EMPTY_PARAMS_MSG); >> else { >> this.ensureParamSize(2); >> if (!StringUtil.empty(params.get(0)) && >> params.get(0).length() < 3) >> context.addError("Mfr Cat Number must >> be at least three characters"); >> if (!StringUtil.empty(params.get(1)) && >> params.get(1).length() < 2) >> context.addError("Mfr Name must be at >> least two characters"); >> if (context.getValidationErrors().size() == 0) { >> results = >> lookup.itemByMfr(user.getCurrentEntity(), params.get(0), >> params.get(1)); >> if (results != null && results.length >> == >> 100) >> context.addMessage("Results >> limited to the first 100 rows returned"); >> } >> } >> >> return new ForwardResolution("/lookup.jsp"); >> } >> >> In the JSP page I am calling a js function that references a name in >> a JS file called itemNumMfr: >> >> <td align="center"> /pics/icon_binoculars.gif </td> >> >> The BeanFirstPopulationStrategy is picking up an error in the JSP >> page that is not even in a stripes tag. Can someone please let me >> know why the following INFO error found in our log would be occurring >> if this is in a regular HTML tag: >> >> INFO [net.sourceforge.stripes.tag.BeanFirstPopulationStrategy] Could >> not locate property of name [itemNumMfr] on >> ActionBean.net.sourceforge.stripes.util.bean.NoSuchPropertyException: >> Bean >> class org.texashealth.scm.stripes.action.common.LookupActionBean does >> not contain a property called 'itemNumMfr'. As a result the following >> expression could not be evaluated: itemNumMfr >> >> Any help or insight would be appreciated. Thanks. >> -- >> View this message in context: >> http://www.nabble.com/BeanFirstPopulationStrategy-tp24096216p24096216 >> .html Sent from the stripes-users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> --------- Crystal Reports - New Free Runtime and 30 Day Trial Check >> out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Stripes-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> > > > > -- > Richard Hauswald > Blog: http://tnfstacc.blogspot.com/ > LinkedIn: http://www.linkedin.com/in/richardhauswald > > ---------------------------------------------------------------------- > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out > the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > -- View this message in context: http://www.nabble.com/BeanFirstPopulationStrategy-tp24096216p24110023.html Sent from the stripes-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from disclosure under applicable law. If you are not the intended recipient, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
