Hi,
Need some help here :)
The bean that I am working with is NOT an ActionForm -
just a POJO - I don't think this should matter. I see
that the "getter" method is getting called correctly
by checking my System.out statements. However, when I
submit the form, the "setter" method does not execute.
I get no error message. Any ideas?
Here is the code of the POJO that is put into the
session:
public class ConfigurableRAUser {
private Map configurableCategoryGroup = new
HashMap();
// this method DOES get called correctly
public Object getGroupMappedByCategoryId(String
key) {
System.out.println("------------------ getting
groupMappedById key: " + key);
System.out.println("------------------
returning Groupid from key: " +
configurableCategoryGroup.get(key) );
return configurableCategoryGroup.get(key);
}
// this method does NOT get called. why??
public void setGroupMappedByCategoryId(String key,
Object value) {
System.out.println("------------------ setting
groupMappedById key: " + key);
System.out.println("------------------ setting
groupMappedById val: " + value);
configurableCategoryGroup.put(key, value);
}
[...]
}
Here is the presentation code:
<logic:iterate
name="toPolicyCategoryWebList" id="foo">
<tr>
<td align=right class=flDataListCell>
<bean:write name="foo"
property="policyCategoryName"/>
</td>
<td align=left class=flDataListCell>
<bean:define id="groupList"
name="foo" property="allPolicyGroups"/>
<bean:define id="catId" name="foo"
property="primaryKey"/>
<html:select
name="configurableRAUser" property='<%=
"groupMappedByCategoryId("+catId+")"%>'
styleClass="flDropdown">
<html:options
collection="groupList" property="value"
labelProperty="label"/>
</html:select>
</td>
</tr>
</logic:iterate>
If you have any ideas, please let me know :) Thanks!!!
Patrick J. Nolan, Jr.
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]