Hi Chris,

I'll take a stab at answering your questions...see below.

On Tue, 21 May 2002, Chris Chew wrote:

> Dan, thanks for the offer to help.
>
> I am having trouble:
>
> 1) Mapping a form to the TurbineUser object.  Or do I
> map it to TurbineUserPeer or User?  Or do I have to
> extend it to implement Retrievable?

You can map it to any object as long as the object implements the
Retrievable interface.  The point of the map though is to:
1. have data prepopulated into the form fields
2. validate the data on form submission

I guess the reason you'd like to map it to a "User" object is because
you'd like the user to be able to fill in their information?
Anyway, those 3 classes you mentioned don't implement Retrievable so if
want to map things then you'll have to extend them.  Whichever one you
should map it to depends on what you want to do (You'd want to map it to
an object that houses your data.  User is just an interface so it's no
good.  TurbineUserPeer is for backend stuff so it doesn't seem good
either.  So maybe TurbineUser...as in, first extend TurbineUser then map,
see the how-to on this on the Turbine website for extending TurbineUser).

> 2) $intake.Group1.getDisplayName() doesn't work.
> $intake.Group1.getKey() does work and
> $intake.Group1.getClass() returns
> "org.apache.turbine.services.intake.model.StringField",
> so I am pretty sure that the Field object is created.

Hmm..this is a bit hard to troubleshoot without the code but before you
send us it perhaps you can try going through the steps I outlined in my
howto, as mentioned in Rodney's response.
http://www.yorku.ca/dkha/turbine/intake/

(Turbine devs: By the way, I'd like to contribute that howto to Turbine's
doc base if people think it's useful.)

> 3) What do I have to do to my torque-generated business classes in order
> for them to be mapable by Intake? Thanks,

I have not worked with Torque yet as our business objects come from
elsewhere.  But I think Rodney's right in that you don't really need to do
anything except use it in your intake.xml, templates, and Action classes.

I hope this helps.  I am still learning bits of Turbine too. :)

> Chris
>
> --- "Dan K." <[EMAIL PROTECTED]> wrote:
> >
> > Hi again,
> >
> > what have you got problems with?  I might be able to
> > help...
> >
> > Regards,
> > Dan
> >
> > On Tue, 21 May 2002, Chris Chew wrote:
> >
> > > How many people out there use Intake?  Does anyone
> > use
> > > another form processor, be it a homegrown solution
> > or
> > > some "official" project?
> > >
> > > I am working on my first app, and really seem to
> > be
> > > struggling with Intake.  I have made it past
> > > actions/screens, the decoupled-torque issues, VML
> > and
> > > Velocity contexts, and figured out the Turbine
> > > Security approach...but Intake is just not coming
> > > clear.  I am trying to figure out if I am missing
> > > something obvious, or if people just don't use it
> > very
> > > often.
> > >
> > > Thanks for the help,
> > >
> > > Chris
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > LAUNCH - Your Yahoo! Music Experience
> > > http://launch.yahoo.com
> > >
> > > --
> > > 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]>
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>
> --
> 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]>

Reply via email to