On 7/6/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 7/6/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > > > > Now there is talk of Struts in the future containing ActionCommands > > which can be substituted in place of Actions, and strung together in a > > chain, and presumably can perform View-Controller logic. > > > > If you look at Shale (with its support for both ViewController and > Dialog -- which, among other things, lets you intersperse action > states and view states to your heart's desire), you'll find that the > future is now :-) > > http://struts.apache.org/shale/ > > Craig
Moved to the new thread. >From http://struts.apache.org/shale/features.html#view "Each backing bean that implements ViewController will support a boolean property postback, which will be set to true if this view is the one that is processing a form submit previously rendered by the same page, or false if this view was newly navigated to." * How is this different from ASP.NET? * Does not this make Shale page-based instead of front-controller based? MS recognized lack of front controller support in ASP.NET 1.0 and will provide it to the second version. Resource-based apps like Struts Classic can return whatever page they want from the same location, while page-based apps tie resource address to a page, which can lead to unfriendly Back experience. This can be worked around, but why if Struts Classic already provides better approach? Sure, a component should be able to be initialized when needed. It can be done easily with initialization parameter. Shale Dialogs is based on Spring Webflow, which, when I checked the last time, did not support Back button and clean refresh. Hopefully, Shale Dialogs behaves more user-friendly. Nevertheless, Struts Dialogs has WizardAction, which provides support for dialogs and wizards, based on Easy Wizard concept: http://today.java.net/pub/a/today/2005/03/15/webwizard1.htm http://today.java.net/pub/a/today/2005/03/29/webwizard2.htm WizardAction subclasses DialogAction and implements wizard's UI Controller. see the demo: http://www.superinterface.com/strutsdialog/wizardaction.do Notice, that Refresh works, and that you cannot go back to a previous page (unless you use Opera). The above is possible with adding of only two action classes to classic Struts. Michael -- Struts Dialogs http://struts.sourceforge.net/strutsdialogs --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]