I have untarred the tgz file you mentioned below. 1) Ran the app 2) logged in as "test01" with pwd of "mypass" 3) Added a book successfully with nothing filled in (title, rating and author ID blank). 4) It was successful with this message, "Added book 'N/A' by 'Bastien' with a rating of N/A."
Didn't see any constraints kick into action albeit I did see a lot of "type: SingleValue" and "type: Required" for global constraint. Was I missing out any packages or something? I did not see any error messages. K. akimoto Quoting Kieren Diment <[EMAIL PROTECTED]>: > For both of your problems, check the code at http:// > dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/ > Final_Tarballs_Per_Part/MyApp_Part9_FormFu.tgz > > > Using that code (unmodified) should tell you where you've gone > wrong. If it doesn't work then come back and ask again. > > On 14 Jul 2008, at 11:04, [EMAIL PROTECTED] wrote: > > > > > hi all > > I have just posted out a question earlier as I could not get the > > example for Tutorial::AdvancedCRUD::FormFu to work. > > > > I have also looked at the examples and put in the Constraint > settings > > in myapp.yml file but it does not work at all. > > > > Whilst I await for some help of you helpful folks to post > > regarding my > > previous issue with Sqlite, > > can anyone tell me how do constraints work? > > > > This is what I am guessing (and hoping): > > > > - assume there's only an input textbox in the interface. Name = > > customerID > > - a constraint has been set to 'Required' for the input text box. > > - user clicks on submit without typing anything into the textbox. > > - web browser returns a nice looking message saying something like, > " > > Input required for field, customerID" > > > > Is that faintly how it works? > > > > thank you > > > > _______________________________________________ > > List: [email protected] > > Listinfo: > http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > > Searchable archive: http://www.mail-archive.com/ > > [email protected]/ > > Dev site: http://dev.catalyst.perl.org/ > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ > > > _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
