On 11/2/05, Peter Speltz <[EMAIL PROTECTED]> wrote:
> On 11/2/05, Peter Speltz <[EMAIL PROTECTED]> wrote:
> > I've been doing a lot of this:
> >
> > if ( my $cid = $r->params->{customer_id} {
> > $self->_to_select('customer_id', $cid)
> > --
> > pjs
> >
>
> Opps. As i was saying . . . Often I have pre determined values for
> form inputs in the parameters hash for some of the display columns.
> Like when creating a Computer Repair, it has a computer_id,
> customer_id, and service_id as prerequisites. These are all has_a rels
> and often predetermined.
>
> Almost invariably I want the value of that parameter to be the initial
> value of the input. It would be neat if Maypole::Form could do
> this. This could possibly simplify things when there are errors on
> forms also. The inputs would automatically get their previous values
> in them.
>
> I think I like it and it could work. It is something to think about
> anyway when developing the Form api.
>
>
In case i was not clear enough, I'm suggesting that maybe the
Maypole:;Form methods making inputs could inpect the parameter hash ,
perhaps passed in as an argument, and if there is a value there for
the field it is making an input for, make that value the initial
value.
--
pjs
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel