cfwheels
[Prev] Thread [Next] | [Prev] Date [Next]
[cfwheels] Re: Newb errorMessagesFor problem jpgilman Tue Jun 23 19:00:28 2009
See above for my controller. In general everything works. I can
create a record and edit it. If I leave the name blank on a new
record or delete the name on an existing record, the transaction isn't
committed to the db. The only screwy bit is that I don't get my error
message.
On Jun 23, 7:47 pm, Chris Peters <[EMAIL PROTECTED]> wrote:
> Yeah, what does your controller look like?
>
>
>
> On Tue, Jun 23, 2009 at 8:45 PM, raulriera <[EMAIL PROTECTED]> wrote:
>
> > You might want to take a look at this bad boy
>
> >http://code.google.com/p/cfwheels/wiki/FormHelpersandShowingErrors
>
> > Everything seems to be ok on your end, maybe you dont have the "user"
> > initiated in your edit/update action?
>
> > On Jun 24, 5:04 pm, jpgilman <[EMAIL PROTECTED]> wrote:
> > > Greetings all. Just worked my way through the Hello Database tutorial
> > > and decided to play with validation. So I created a user.cfc in the
> > > models folder to validate the name field:
>
> > > <cfcomponent extends="Model">
> > > <cffunction name="init">
> > > <cfset validatesPresenceOf(property="name", message="Name
> > > required")>
> > > </cffunction>
> > > </cfcomponent>
>
> > > The validator works fine, but I can't generate the error message. For
> > > example, I've inserted
>
> > > #errorMessagesFor("user")#
>
> > > into my edit view, but get no error message when I try to update the
> > > record with a null value for name.
>
> > > Any thoughts are appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ColdFusion on Wheels" 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/cfwheels?hl=en
-~----------~----~----~----~------~----~------~--~---
- [cfwheels] Re: Newb errorMessagesFor problem, (continued)
- [cfwheels] Re: Newb errorMessagesFor problem jpgilman
- [cfwheels] Re: Newb errorMessagesFor problem Chris Peters
- [cfwheels] Re: Newb errorMessagesFor problem John Gilman
- [cfwheels] Re: Newb errorMessagesFor problem raulriera
- [cfwheels] Re: Newb errorMessagesFor problem Chris Peters
- [cfwheels] Re: Newb errorMessagesFor problem Per Djurner
- [cfwheels] Re: Newb errorMessagesFor problem Chris Peters
- [cfwheels] Re: Newb errorMessagesFor problem Per Djurner
- [cfwheels] Re: Newb errorMessagesFor problem [EMAIL PROTECTED]
- [cfwheels] Re: Newb errorMessagesFor problem Chris Peters
- [cfwheels] Re: Newb errorMessagesFor problem jpgilman <=