It is all clear now :) Thanks for your help John!!!
Dan Diephouse
John McNally wrote:
> This is not how i usually do things, but I guess it could work. One
> thing that is wrong is that you are using mapTo(job) in the template and
> then in the action you are using IntakeTool.DEFAULT_KEY. Unless
> job.getQueryKey() returns "_0", this combination is not going to work.
> Print out data.getParameters().toString() in the action to see what the
> parameters look like.
>
> Here is what I consider a normal course of events:
>
> 1. In the template:
>
> $job = $foo.Job
> #set ( $jobGroup = $intake.Job.mapTo($job) )
>
> (This job is can be a new Job or one that is already saved.)
>
> 2. In the action:
>
> // get the same (not necessarilary the same java Object, but has the
> exact same attribute values) job
> Job job = foo.getJob()
> Group group = intake.get("Job", job.getQueryKey());
> group.setProperties(job);
>
> It appears as though you are trying to map the parameters given for one
> job to another job.
>
> john mcnally
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]