Re: [Catalyst] HTML::FormFu - how to manually control the rendering?
On Mon, Aug 18, 2008 at 5:59 AM, <[EMAIL PROTECTED]> wrote: > > hello there > I love using HTML::FormFu in these two aspects: > 1) Validation - oh ,yeah :) > 2) configuration (via yaml in my case) > > > nevertheless, is there any way we can control the rendering (in TT2)? Try this: script/myapp_create.pl HTML::FormFu Then go into $app_root/root/formfu and confirm the templates have been created. Next add 'render_method: tt' to your form config. http://search.cpan.org/~cfranks/HTML-FormFu-0.03002/lib/HTML/FormFu.pm#render_method Caching is another matter. -- Ian Tegebo ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Jemplate and AJAX woes... [Bump -anyone??]
On Wed, Aug 13, 2008 at 3:26 PM, Robert Krimen <[EMAIL PROTECTED]> wrote: > > On Wed, Aug 13, 2008 at 2:39 PM, <[EMAIL PROTECTED]> wrote: >> >> >> 2) I have been looking (googling) for Jemplates and got no luck really. >> Most of the AJAX tutes do not talk about Catalyst enough (what more of >> Jemplates)... Any good tutorials for Jemplates especially in terms of >> what I want to achieve (as described above)? > > I would start out by setting up an API controller > (MyApplication::Controller::API) > which is a Catalyst::Controller::REST. > > Flesh out your API methods and have jQuery act as an intermediary between > your API controller and Jemplate (using $.get, $.post, etc.) I'm trying to get a general understanding of how javascript techniques fit into Catalyst; I don't think I'm alone either. After a friend had recommend jQuery, I've found I really like it but had been under the impression that I wouldn't be able to use Jemplate at the same time. A second read of Rockway's Editable Addressbook in chapter 7 of the Catalyst book leaves me wondering how TT, Jemplate, and jQuery would best "get along". Is it the case that Catalyst::View::Jemplate exists to reduce HTML munging within client-side javascript? If so, then is it correct to think of jQuery, Jemplate, and the Catalyst::Controller::REST interface as kind of a browser-side MVC? I'm imagining the REST calls through jQuery as accessing the "model" while qQuery serves as the controller via its selectors finally rendering its "view" through Jemplate. BTW, it appears Catalyst::View::Jemplate broke after Jemplate >= 0.21 changed the behaviour of Jemplate::runtime_source_code (see RT 35609, 37813). What versions are you running? -- Ian Tegebo ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Problem installing Catalyst::View::Jemplate
Perhaps see: http://rt.cpan.org/Public/Bug/Display.html?id=35609 On Tue, Aug 5, 2008 at 4:11 AM, <[EMAIL PROTECTED]> wrote: > > hi all, > > I had a regression test fail when I tried to install > Catalyst::View::Jemplate. > Did it with the PERL CPAN shell first and got an error. Then, I decided > to go to the directory where Catalyst::View::Jemplate was untarred to > and run make, make install and make test myself. > > Below is the error message. Nevertheless, running "perldoc > Catalyst::View::Jemplate" works but I'm just very curious on why the > test is failing and how to fix it. I tried googling under this keyword, > "Errors installing JEMPLATE t/01_live.t" and it's not been fruitful. > Please help. > > > [EMAIL PROTECTED]:~/codes# cd > /root/100/build/Catalyst-View-Jemplate-0.06-loxKog > [EMAIL PROTECTED]:/root/100/build/Catalyst-View-Jemplate-0.06-loxKog# ls > blib Changes lib Makefile Makefile.PL MANIFEST META.yml pm_to_blib t > [EMAIL PROTECTED]:/root/100/build/Catalyst-View-Jemplate-0.06-loxKog# perl > Makefile.PL > Writing Makefile for Catalyst::View::Jemplate > [EMAIL PROTECTED]:/root/100/build/Catalyst-View-Jemplate-0.06-loxKog# make > Manifying blib/man3/Catalyst::Helper::View::Jemplate.3pm > Manifying blib/man3/Catalyst::View::Jemplate.3pm > [EMAIL PROTECTED]:/root/100/build/Catalyst-View-Jemplate-0.06-loxKog# make > install > Installing /usr/local/share/perl/5.8.8/Catalyst/View/Jemplate.pm > Installing /usr/local/share/perl/5.8.8/Catalyst/Helper/View/Jemplate.pm > Installing /usr/local/man/man3/Catalyst::Helper::View::Jemplate.3pm > Installing /usr/local/man/man3/Catalyst::View::Jemplate.3pm > Writing /usr/local/lib/perl/5.8.8/auto/Catalyst/View/Jemplate/.packlist > Appending installation info to /usr/lib/perl/5.8/perllocal.pod > [EMAIL PROTECTED]:/root/100/build/Catalyst-View-Jemplate-0.06-loxKog# make > test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00_compile..ok > t/01_live.[debug] Creating Jemplate file from > /root/100/build/Catalyst-View-Jemplate-0.06-loxKog/t/lib/TestApp/root/bar.tt > /root/100/build/Catalyst-View-Jemplate-0.06-loxKog/t/lib/TestApp/root/foo.tt > t/01_live.1/18 [debug] Creating Jemplate file from > /root/100/build/Catalyst-View-Jemplate-0.06-loxKog/t/lib/TestApp/root/bar.tt > [debug] Creating Jemplate file from > > # Failed test at t/01_live.t line 60. > # Structures begin differing at: > # $got->[0] = '' > # $expected->[0] = 'text/javascript' > # Looks like you failed 1 test of 18. > t/01_live. Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/18 subtests > > Test Summary Report > --- > t/01_live.t (Wstat: 256 Tests: 18 Failed: 1) > Failed test: 16 > Non-zero exit status: 1 > Files=2, Tests=19, 0 wallclock secs ( 0.00 usr 0.01 sys + 0.35 cusr > 0.02 csys = 0.38 CPU) > Result: FAIL > Failed 1/2 test programs. 1/19 subtests failed. > make: *** [test_dynamic] Error 1 > > > thank you, > Kakimoto > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > -- Ian Tegebo ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] What's up with Catalyst::View::Jemplate?
Catalyst-View-Jemplate-0.06 is failing its tests and I'm wondering if anyone is even using it/recommending it (given that it's demonstrated in the Catalyst book). An example of the failed test is: t/00_compile..ok t/01_live.[debug] Creating Jemplate file from /usr/local/cpan/build/Catalyst-View-Jemplate-0.06-WvIUNA/t/lib/TestApp/root/bar.tt /usr/local/cpan/build/Catalyst-View-Jemplate-0.06-WvIUNA/t/lib/TestApp/root/foo.tt t/01_live.1/18 [debug] Creating Jemplate file from /usr/local/cpan/build/Catalyst-View-Jemplate-0.06-WvIUNA/t/lib/TestApp/root/bar.tt [debug] Creating Jemplate file from # Failed test at t/01_live.t line 60. # Structures begin differing at: # $got->[0] = '' # $expected->[0] = 'text/javascript' # Looks like you failed 1 test of 18. t/01_live. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/18 subtests -- Ian Tegebo ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Package , Catalyst::Plugin::Wizard is great but examples need some clarification
Firstly, I hadn't seen this module before - so thanks for that! Secondly, in case you hadn't already noticed, there are more examples within the test directory that may be of some use. On Thu, Jul 10, 2008 at 11:50 PM, <[EMAIL PROTECTED]> wrote: > > hi there > > Anyone used this module yet? I was very impressed when i read the > perldoc for it. > Even got it installed. > I think it's a very powerful module but needs some work. > > Now, looking at the example found in > http://search.cpan.org/~davinchi/Catalyst-Plugin-Wizard-0.06/lib/Catalyst/Plugin/Wizard.pm#$c-%3Ewizard-%3Enext, > I have some questions. > > 1) Referring to " sub edit : Local", it will only work if the current > user has logged in.. That sounds alright but then again, what happens > when a user is already logged in? > > 2) I have tried building something into my application. I have these steps: > > - step 1: Display form showing loan type > - step 2: Validate and make sure a loan type is selected. Then, > display a specific loan type form which contains specific attributes > (based on loan type ie. personal loan, home loan and so forth) > - step 3: Validate and make sure the attributes of a specific loan > type has been entered. If so, save loan type and the other attributes > into the model and just display a "saved ok" confirmation screen (the > least). > >When I used this Catalyst::Plugin::Wizard, $c->wizard is never > defined when I come to step 3. > > Help!! > > > thank you > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > -- Ian Tegebo ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
On 1/16/08, Alex Povolotsky <[EMAIL PROTECTED]> wrote: > Tobias Kremer wrote: > > > >> I need some advice on where to look for documentation specially > >> the DBIx Class and which methods I can use in here along with Catalyst. > >> I've already ordered the Catalyst book but until this arrive any hints? > >> > > > > I suggest going through the tutorial application which teaches you all the > > basics of Catalyst and DBIx::Class: > > > > http://search.cpan.org/dist/Catalyst-Manual/lib/Catalyst/Manual/Tutorial.pod > > > > > > Unfortunately, Tutorial is weak. CRUD section lacks Update at all, and > it does not deal with any transaction, and it seems to use poor methods > to create records. Could you provide an example of richer methods for record creation? -- Ian Tegebo ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
On 1/15/08, Peter Sørensen <[EMAIL PROTECTED]> wrote: > I need some advice on where to look for documentation specially > the DBIx Class and which methods I can use in here along with Catalyst. > > I've already ordered the Catalyst book but until this arrive any hints? Perhaps try: http://catalyst.perl.org/calendar/2007/22 and http://search.cpan.org/~jrockway/Catalyst-Manual-5.701003/lib/Catalyst/Manual/Tutorial.pod -- Ian Tegebo ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/