Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Best tools for simple WebUI

by kazak (Beadle)
on Sep 17, 2012 at 10:20 UTC ( #994001=perlquestion: print w/replies, xml ) Need Help??
kazak has asked for the wisdom of the Perl Monks concerning the following question:

Hi to all. This time I'm trying to choose some set of tools that will help me to build simple webUI: Table of data built on basis of mysql query, with checkbox for each item and couple of buttons like Edit \ Delete \ Inactive.

I started to learn CGI, and ran into a problem - some of modules I found are lacking of some features, for example CGI::FromBuilder can't handle repeating forms. So I'm just wondering if someone already found a proper tool for this or a combination of different tools, but not such heavy as a full fledged frameworks( Mojo,Dancer,Catalyst,Moose).

Thanks in advance.

Replies are listed 'Best First'.
Re: Best tools for simple WebUI
by Corion (Pope) on Sep 17, 2012 at 11:05 UTC

    Your task is not as simple as you make it out to be, and it will likely require one of the mentioned frameworks, or contain such a framework. I would look through the CRUD modules ("CReate, Update, Delete") - there are some that seem to allow editing a table through a web browser.

    Conceptually, Dancer or Mojolicious will likely be enough as you don't seem to have a need for big application logic. Still you will want to handle a session and serving web pages, which is what they provide.

      Yes thanks a lot . At first glance CRUD\Cruddy looks very similar to what I need, I'll definitely try it.
Re: Best tools for simple WebUI
by Mr. Muskrat (Canon) on Sep 17, 2012 at 20:13 UTC

    It sounds like you could benefit from a template module such as Template or HTML::Template. There are also many more on CPAN if you just search for them.

      Thanks for a clue, I'll use it.
Re: Best tools for simple WebUI
by Rhandom (Curate) on Sep 17, 2012 at 14:42 UTC
    What are you referring to by "repeating forms." Does the entire form repeat? Do only specific elements repeat? Do you have the same form multiple times on the page but using different form tags?

    I have a module that handles various types of repeating, but I'd like to make sure I'd be answering the question you are wanting answered before I just spit out a random solution to a problem you might not be having.

    my @a=qw(random brilliant braindead); print $a[rand(@a)];
      Thx for your attention. The thing I trying to make it's Xen images builder,and when this software builds some image it takes input data (like hostname,IP, etc.... from a DB). So one appliance (that will be started from the image built by my system) may have multiple network interfaces, so element IP address may be repeated due to a multiple network interfaces, or user may want to add 2 images at once so whole form may be repeated with all its elements.
Re: Best tools for simple WebUI
by fluffyvoidwarrior (Monk) on Sep 17, 2012 at 18:06 UTC
    My experience with this sort of thing is that in the end you are better off writing your own tools. I know it flies in the face of conventional wisdom about re-inventing the wheel but not all wheels are the same and not all round things are wheels. I have found that you can spend a lot of time learning to handle a framework or api only to find at the end of a long journey that it won't do what you need (if not for this job then the next). You are back to square one. But then you also find that the whole thing is so complicated under the hood that modifying it is really not a good idea. Then, rather than discovering that pretty much anything that a computer can do you can make it do via Perl, you end up in a world of frustration. If you want to do non standard stuff off of the beaten track I have found no better tool than Perl itself. On the other hand, if you'll never need to stray out of someone elses comfort zone go for a framework, but otherwise roll your own with bits of cpan...
      Thx, I'll think about it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://994001]
Front-paged by Arunbear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-01-22 08:34 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (186 votes). Check out past polls.