Dan,

Can you post what your doing in the userService.get()..  I got() a
feeling that your doing something nefarious in there since that is
where your user object is coming from..
How is the service accessing transfer.. I mean are you using
coldspring to setup transfer or are you creating it somewhere else?





On Jun 26, 10:47 am, Dan Vega <[email protected]> wrote:
> I just have a simple user form that you fill out and then submit it.
> When it submits I get the user based on the id. On the very 1st pass
> through it works fine and the user is saved (that code is not here).
> When I go back in and edit the user and save the data that user object
> is now a general transfer object.
>
> <cfif structKeyExists(form,"submit")>
>
>         <cfset user = application.userService.get(form.userId)>
>
> </cfif>
>
> <cfparam name="url.id" default="0"/>
> <cfset user = application.userService.get(url.id)/>
>
> <cfparam name="form.userId" default="#user.getUserId()#">
> <cfparam name="form.firstname" default="#user.getFirstName()#">
> <cfparam name="form.lastname" default="#user.getLastName()#">
> <cfparam name="form.email" default="#user.getEmail()#">
> <cfparam name="form.active" default="#user.getActive()#">
> <cfparam name="form.username" default="#user.getUsername()#">
> <cfparam name="form.password" default="#user.getPassword()#">
>
> <cfset page = structNew()>
> <cfset page.title = "User Details"/>
>
> <cfmodule template="tags/layout.cfm" attributecollection="#page#">
>
>         <cfoutput>
>         <form method="post" class="dforms">
>         <input type="hidden" id="userId" name="userId" value="#form.userId#">
>                 <fieldset>
>                         <legend>User Information</legend>
>                         <p>
>                                 <label for="firstname">First Name</label>
>                                 <input type="text" id="firstname" 
> name="firstname"
> value="#form.firstname#" class="input" size="30"/>
>                         </p>
>                         <p>
>                                 <label for="lastname">Last Name</label>
>                                 <input type="text" id="lastname" 
> name="lastname"
> value="#form.lastname#" class="input" size="30"/>
>                         </p>
>                         <p>
>                                 <label for="email">Email Address</label>
>                                 <input type="text" id="email" name="email" 
> value="#form.email#"
> class="input" size="30"/>
>                         </p>
>                         <p>
>                                 <label for="active">Active</label>
>                 <input type="radio" name="active" id="activeYes"
> value="1" <cfif form.active EQ 1>checked</cfif>/> Yes
>                 <input type="radio" name="active" id="activeNo"
> value="0"  <cfif form.active EQ 0>checked</cfif>/> No
>                         </p>
>                 </fieldset>
>
>                 <fieldset>
>                         <legend>Login Information</legend>
>                         <p>
>                                 <label for="username">Username</label>
>                                 <input type="text" id="username" 
> name="username"
> value="#form.username#" size="30"/>
>                         </p>
>                         <p>
>                                 <label for="password">Password</label>
>                                 <input type="password" id="password" 
> name="password"
> value="#form.password#" size="30"/>
>                         </p>
>                 </fieldset>
>
>                 <p align="right">
>                 <input type="submit" name="submit" id="submit" value="Save
> User" />
>                 </p>
>
>         </form>
>         </cfoutput>
>
> </cfmodule>
--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" 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/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to