Thanks for the response Leslie.  I am passing the person data
structure because I want to be able to use the built in functionality
in weblocks to automatically have the form do the work of creating the
object for me in the database.  I guess the functionality I would like
is for quickform to recognize the fields in my view that map to my
data model and ignore the fields that do not (either by some directive
I provide or as a default) and use the fields that do map to my data
model to create or update the data I provide to the form.  Does that
make sense?  I'm sure there is some deeper problem with doing it this
way that I am missing.

On Feb 23, 12:17 am, "Leslie P. Polzer" <[email protected]> wrote:
> On Feb 23, 4:40 am, Saikat Chakrabarti <[email protected]> wrote:
>
> > Ah thanks for the reply - that does sound like a good way to do this.
>
> There's even something ready to plug in and run, have a look at
>
>   contrib/lpolzer/dual-password.lisp
>
> > If someone can confirm for me though that
> > currently there is no support for having fields in the view that do
> > not match fields in the model in the type of use case that I describe,
> > that would be great - otherwise I will probably just try to look
> > through the weblocks code.
>
> There is support, and it's in fine condition. But you're not using
> it correctly.
>
> MAKE-QUICKFORM can create a class that has slots for every
> view field, but it will only do so if it is not being passed a data
> object.
>
> You pass it a PERSON as data so it will use that. When you try
> to access the slot RETYPE-PASSWORD in that class you get
> an error because PERSON does not have that slot.
>
> So the next question is: how do you expect MAKE-QUICKFORM
> to behave here?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to