You might want to give the new extending turbine user user howto a try. I have had one person, that I know of, follow the howto to extend TurbineUser. That will get you past the problems that you are running into. Granted, I am a little biased suggesting this to you.. :)
I think that the he now has it working properly. Is this correct, Marc? > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 2:58 PM > To: Turbine Users List > Subject: Re: Access to current user ID? > > > > No, this reports: > > [javac] appname\WEB-INF\src\java\com\genelogic\appname\modules\ > actions\MyFormActions.java:62: setAddedBy(int) in > com.gen elogic.appname.om.BaseSampleSet cannot be applied to > (org.apache.torque.om.Object > Key) > > [javac] newSet.setAddedBy(( (TurbineUser) > data.getUser() > ).getPrimaryKey()); > [javac] ^ > [javac] 1 error > > Though I have a feeling even if this did compile it would > leave me w/ another class cast exception (since > turbine.om.security.User seems to dislike being cast to > TurbineUser within my own om). -j > > > > > > Bill > > <bhalpin@collaborative To: > Turbine Users List > fusion.com> > <[EMAIL PROTECTED]> > cc: > > 12/16/2002 07:36 AM Subject: > Re: Access to current user ID? > Please respond to > > "Turbine Users List" > > > > > > > > > > On Mon, 2002-12-16 at 17:07, [EMAIL PROTECTED] wrote: > > > > > newA.setAddedBy(data.getUser().getUserId()); <-- doesn't work > > this should work: > > ( (TurbineUser) data.getUser() ).getPrimaryKey() > > > > > > > -- > To unsubscribe, e-mail: < > mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: < > mailto:[EMAIL PROTECTED]> > > > > > > > > -- > To > unsubscribe, e-mail: > <mailto:turbine-user-> [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]>
