On 9/19/02 12:58 AM, "Florian Suschetz" <[EMAIL PROTECTED]>
wrote:
> Hi there, could anybody tell me what is necesarry that following directive
> in an action-class works:
>
> IntakeTool intake = (IntakeTool) context.get("intake");
> Group group = intake.get("groupName", "");
The problem is in the line above. You need to tell him how the group is
reference in your context => intake.get("groupName", "the key")
-------- insert
In template, you should a line like:
#set ($contactGroup = $intake.Contact.Default)
And in you action, a line like:
Group contactGroup = intake.get("Contact", IntakeTool.DEFAULT_KEY, false);
-------- update
In template, you should a line like:
#set ($contactGroup = $intake.Contact.mapTo($contact))
And in you action, a line like:
Group contactGroup = intake.get("Contact", contact.getQueryKey(), false);
David Worms
> group.get("fieldName");
>
> The first two commands work, when I call group.get(), I get an error...
> Thanks,
> Flo
>
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>