For some reason the JSP code did not come over so I'm trying to send it again:
[CODE]
<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>
[/CODE]
-----Original Message-----
From: Savoy, Melinda
Sent: Thursday, June 18, 2009 1:42 PM
To: [email protected]
Subject: [Stripes-users] BeanFirstPopulationStrategy
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
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.
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users