[ http://issues.apache.org/struts/browse/SHALE-146?page=all ]
Craig McClanahan moved STR-2465 to SHALE-146: --------------------------------------------- Project: Shale (was: Struts Action 1) Key: SHALE-146 (was: STR-2465) Component: (was: Shale) Version: (was: 1.2.4) Assign To: (was: Struts Developer Mailing List) > Create Default Transitions for Dialogs > -------------------------------------- > > Key: SHALE-146 > URL: http://issues.apache.org/struts/browse/SHALE-146 > Project: Shale > Type: Improvement > Environment: Operating System: Mac OS X 10.3 > Platform: Macintosh > Reporter: David Geary > Priority: Minor > > We could make defining dialogs much easier with some default transitions. If > we > assume that the dialog states in dialog-config.xml are listed in the order > they > are traversed, we could provide default "next" and "previous" transitions for > each state, except of course, there would be no "previous" transition for the > first state, and no "next" transition for the previous state. Any explicit > "next" or "previous" states declared in dialog-config.xml would override the > defaults. > It also seems like a common requirement to have dialog-scope transitions (not > state-scope) for each state in the dialog. For example, many wizards have tabs > that let you jump from one wizard panel to the next, regardless of the > currently > displayed wizard panel. We could also create default dialog-scope transitions > whose outcomes and targets match the state names. Again, you could override > those defaults by providing your own transitions. > With those changes, we would reduce this: > <dialogs> > <dialog name="Create Account" > start="User Information"> > <transition outcome="User Information" target="User Information"/> > <transition outcome="Address" target="Address"/> > <transition outcome="Phone Numbers" target="Phone Numbers"/> > <transition outcome="Summary" target="Summary"/> > <transition outcome="Exit" target="Exit"/> > <view name="User Information" > viewId="/pages/account.jsp"> > <transition outcome="next" > target="Phone Numbers"/> > </view> > <view name="Phone Numbers" > viewId="/pages/account.jsp"> > <transition outcome="next" > target="Address"/> > <transition outcome="previous" > target="User Information"/> > </view> > <view name="Address" > viewId="/pages/account.jsp"> > <transition outcome="next" > target="Summary"/> > <transition outcome="previous" > target="Phone Numbers"/> > </view> > <view name="Summary" > viewId="/pages/account.jsp"> > <transition outcome="previous" > target="Address"/> > </view> > <end name="Exit" > viewId="/pages/login.jsp"> > </end> > </dialog> > </dialogs> > To this: > <dialogs> > <dialog name="Create Account" > start="User Information"> > <view name="User Information" > viewId="/pages/account.jsp"/> > <view name="Phone Numbers" > viewId="/pages/account.jsp"/> > <view name="Address" > viewId="/pages/account.jsp"/> > <view name="Summary" > viewId="/pages/account.jsp"/> > <end name="Exit" > viewId="/pages/login.jsp"> > </end> > </dialog> > </dialogs> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]