You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Nikhil G. Daddikar" <ng...@celoxis.com> on 2002/05/17 10:25:00 UTC
Intake group fields don't get populated from ParameterParser
When there is an error i.e. when intake.isAllValid is false, i re-show the orginal form as described in the Intake HowTo. However
when I print something like
$docGroup.Name when field Name was actually set correctly it still returns blank. Doesn't the group automatically get populated from
the parameter parser?
Thanks for any input.
Nikhil
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Intake group fields don't get populated from ParameterParser
Posted by "Dan K." <da...@YorkU.CA>.
Hi Nikhil,
In Turbine 2.1 (don't know if same for 2.2), the form fields gets
populated by the call to $intake.some_group.mapTo($businessObject). e.g.
in your .vm file you might have something like this:
#set($loginGroup = $intake.LoginGroup.mapTo($loginObject))
where
- $loginObject is your populated business object.
- and $loginGroup is the intake group, with populated fields from
$loginObject.
Or search in the mail archives for "prepopulate" and "intake".
ParameterParser is just another way for you to get at the params in the
request.
Hope this helps,
Dan
On Fri, 17 May 2002, Nikhil G. Daddikar wrote:
> When there is an error i.e. when intake.isAllValid is false, i re-show the orginal form as described in the Intake HowTo. However
> when I print something like
>
> $docGroup.Name when field Name was actually set correctly it still returns blank. Doesn't the group automatically get populated from
> the parameter parser?
>
> Thanks for any input.
> Nikhil
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>