[Opensource] Concept of a Default Button?

Michael Rimov rimovm at centercomp.com
Wed Apr 16 03:15:08 PDT 2003


Hey All,

As some of you know, Expresso figures out which button was pressed on a 
form based upon the button name, and then gets the appropriate state 
information from a hidden parameter named <button name>_param

The problem on most of these forms is if the user hits enter on the form, 
the form is submitted but officially no 'button_name=' parameter gets sent 
since technically a button wasn't pressed.  The problem is that this causes 
all sorts of interesting issues because the system then assumes initial 
state for the controller and sends you there. [Usually, you're back to the 
prompt state]

So!  Any folks have any naming conventions, etc to specify default 
buttons?  Perhaps in the Transitions in a Response have a default='y' 
attribute set for the Transition you want default?

Thoughts?
						-Mike






More information about the Opensource mailing list