in reply to CGI::Application, have I made a big mistake.
I've got a situation where two input forms are very similar, (creating a user, and modifying a user) They are just different enough that I have a unique run mode for each to set them up, but I use the same _proc to handle the inputs.
You posit:
you gotta control the users path. Lead them by the nose or they will get it all wrong!This is a UI decision, which depends closely upon what you are trying to accomplish. Sometimes it is appropriate, othertimes no. In terms of CGI:A and how you code, it doesn't really matter, as you could support either. Supporting a lot choices is easy, just have them encoded in hrefs in the returned html. If you want to force the user on a path, just give them html that contains only a submit button with a hidden rm field indicating the next runmode.
Should "search, select, view and edit each be a separate run_mode"? Yes, in my opinion they should be seperated. Keep in mind that you can always factor out common code into an outside module for reuse across these runmodes.
Cheers
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: CGI::Application, have I made a big mistake.
by jdtoronto (Prior) on Nov 25, 2003 at 01:02 UTC | |
by freddo411 (Chaplain) on Nov 25, 2003 at 18:07 UTC |