catalyst

Difference b/w Skins and CSS themes in Flash Builder

my question consists of tow parts **1- why we need skins for every elements if we can style our application using CSS file. for example in theme Graphite in SDK's Sample consists of both CSS+.fla and skins---.mxml files. 2- How we can create a whole theme with out coding CSS.** ...

How do I pass disabled input elements from page 1 to page 2 in Catalyst?

How do I pass disabled input elements (TT) from page 1 to page 2 in Catalyst framework? I can do it with hidden input. Is there any other way to handle it? ...

Operating System Commands execution in Catalyst Controller?

How to use Operating System Commands in Catalyst Controller? For example. I want to use Perl system command in Controller .it’s not working .. Any idea? In Controller module my $cmd = "/temp/useradd.sh $username_st1 $_ $log_file &"; system ($cmd ); ...

Why use nginx with Catalyst/Plack/Starman?

I am trying to deploy my little Catalyst web app using Plack/Starman. All the documentation seems to suggest I want to use this in combination with nginx. What are the benefits of this? Why not use Starman straight up on port 80? ...

Componentizing complex functionality in an MVC web app

Hi Everyone, This is question about MVC web-app architecture, and how it can be extended to handle componentizing moderately complex units of functionality. I have an MVC style web-app with a customer facing credit card charge page. I've been asked to allow the admins to enter credit card payments as well, for times when credit cards ...

Offline Catalyst driver

Im trying to install ATI's graphic driver Mobility Catalyst 10.5, but it has no internet, so I am trying to burn it from my stationary PC and use it at the laptop. However, I cant find a decent version of the thing, not even with the so called "solution pack" which I despise. Does anyone know where I can get a decent download of an offl...

extending flex 4 'group' component problem

Hi, I have a component that were exported from catalyst (the component is based on a tag). Now I created a new component extending this. However when I add this new component to my module it doesn't seem to inherit the designs that were exported from catalyst. Any idea how i can do that? Ofcource when I add the component that were dire...

How do you created a nested form using HTML::FormHandler in Catalyst?

I have a situation where we have a base recordset with about one hundred thousand records. And, we are creating a separate application that shares some of the dataset, but not most, so we are creating a detail table that has a one to one relationship with the original table. What I want to do is pull the existing information from the ori...

How to cancel a file upload based on file size in Catalyst

I'm writing a file upload handler Catalyst. I'm trying to restrict the maximum file size. To do this I've made a Plugin (based on the answer here). Here is the code where I check for the file size: before 'prepare_body' => sub { my $c = shift; my $req = $c->request; my $length = $req->headers->{"content-length"}; if ($l...

syntax error! jqGrid problem parsed by Catalyst server.pl

Hi I'm new to Catalyst, I found server.pl built-in in catalyst module can not parse jqGrid correctly. Below is error messages: Error: syntax error Source File: http: //xxx:3000/site/static/js/i18n/grid.locale-en.js Line: 2 Source Code: Error: syntax error Source File: http ://localhost:3000/site/static/js/jquery.jqGrid.min.js Line...

Catalyst::View::JSON and jqGrid data format question

Hi, I'm using Catalyst::View::JSON and Catalyst::TraitFor::Controller::jQuery::jqGrid to retrieve JSON data to front page. Below is the code concerned (copy much partially from Catalyst::TraitFor::Controller::jQuery::jqGrid example): package UW::Controller::Site; use utf8; use Moose; use namespace::autoclean; BEGIN {extends 'C...

Catalyst: How do I make DBIx::Class::Schema::Loader::make_schema_at() static preserve case?

I'd like to be able to force the PACKAGE->add_columns() to not lc everything. I know there's a preserve_case option, but I can't figure out where to put it though. is there a 'myproj_schema.pl' file I can create in /conf ? -Joe ...

Catalyst create schema can't connect but I can

So I can connect with (obviously I replaced all the real values) mysql -u username -p -h db.dbhostname.com dbname But when I run Catalyt's create script I get ./script/dasgift_create.pl model DB DBIC::Schema MyApp::Schema create=static components=TimeStamp dbi:mysql:dbname:db.dbhostname.com username p@55w0rd DBIx::Class::Schema::Load...

uri_for includes port number on redirects

I'm attempting to implement a Catalyst application using nginx as a frontend web proxy for static files, and using Starman for my backend webserver. (I could use Apache & FastCGI and it works just fine, but I'd really like to get the whole PSGI / Plack and Starman thing ironed out) Starman starts up okay and can handle my requests ju...

Accessing the Catalyst object $c from MyApp.pm

I'm using the Assets plugin in my Catalyst app, and I would like some javascript and css files included in the assets of every page. My first thought is call $c->assets->include('file.js') from MyApp/lib/MyApp.pm where I do setup and config, but I don't know how to get a hold of $c there. My next idea involves using the WRAPPER stu...

How do I turn Moose objects into JSON for use in Catalyst?

I have a series of Moose objects that I'm looking to feed to JSON::XS by way of Catalyst::View::JSON. JSON::XS is unable to encode blessed data-structures. I know that there is MooseX::Storage::Format::JSON which can -- kinda -- do what I want; but, it seems pretty overly heavy. What I'm looking for is essentially the same information th...

How to reload the configuration in catalyst

How to reload the configuration when ever the configuration changed in catalyst web framework and need to reload the configuration with out restarting the catalyst server. ...

Removing HTML from user input in Perl and Catalyst

I'm using Catalyst for my Perl web app. What is the accepted way of removing HTML from user input? Currently I'm leaning towards using HTML::FormatText. But it seems strange to me that I can't find a utility built into Catalyst to do this common task. Have I just not found it? Also, it seems these modules for removing input take l...

Perl version string: why use EVAL EXPR?

I just took notice to this generated by Catalyst.pl. It is obviously some sort of unannotated hack. What is the advantage of setting up a version string like this? I can't even figure out what they're trying to do. our $VERSION = '0.01'; $VERSION = eval $VERSION; ...

Perl Test::More and setting up test requirements.

With Test::More I often want to have a module that runs tests and has the ability to abort the callers test_plan. I have a series of tests that set up a plugin list for Catalyst::Test. I don't want to have to make my test check to see if they exist; instead, I want my script to abort if those plugins aren't present. I was trying to trac...