Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: session problem

by mattr (Curate)
on May 24, 2007 at 13:43 UTC ( #617226=note: print w/replies, xml ) Need Help??


in reply to session problem

Hi,

I've been using formbulder (Catalyst::Controller::FormBuilder, based on CGI::FormBuilder) and like it. CGI::FormBuilder docs do mention multi-screen forms.

But I've built a catalyst portal recently with lots of forms and never had a problem or needed multipage forms myself.

The logged in user is found ($c->user) and is automatically managed via Catalyst's authentication and session capabilities. So I always show forms prepopulated from the db keyed to the user, and then save immediately.

I don't use the session manually myself, though you could persist stash in $c->flash. I think maybe you are making things too complicated, maybe using the same form field names in different forms. That's bad!

Try FormBuilder. You can make one definition for each form, or if you are dying to make multi-screen forms then make a big definition and then I guess you will want to change which fields are hidden depending on theform page number. Hope this helps.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://617226]
help
Chatterbox?
[Corion]: Once more, I'm looking for a sane client-side framework, but I guess these don't exist. Everything I look at either uses a weirdo home-grown templating language (like Angular in all its incarnations) or uses weirdo Javascript incarnations (like ...
[Corion]: ... Inferno.js, which uses ES2015) or uses some horrible amount of Javascript infrastructure before you can even render a single file.
[Corion]: I'd really like to create a dynamic frontend for my Google Keep clone, but so far, all the templating solutions seem to bring their own template language or require me to hand-code everything in (their own flavour of) Javascript. I'd like something ...
[Corion]: ... that can use templates from the HTML (via <script language="text/ template">... my template ...</script> and otherwise gets out of my way. But it seems that is not how the Javascript world is, currently :-/
[Corion]: I guess my question is, has anybody worked with React, Ember, Angular (v2, v4, v.whatever) or any other JS client-side dynamic rendering/virtual DOM thingie and found a simple, single-file solution like jQuery?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-03-27 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.