Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by NickWestgate: http://wiki.apache.org/tapestry/PopupLinkSubmit ------------------------------------------------------------------------------ <parameter name="action"> <description> A listener that is notified if this component is triggered - just before the form's listener, after all components + just before the form's listener, after all components enclosed by the Form have had a chance to update their properties. </description> </parameter> <parameter name="parameters"> <description> - An object, or list of objects, gathered when the link is triggered and + An object, or list of objects, gathered when the link is triggered and made available as listener parameters in the request cycle, making the parameters available to a deferred listener. </description> </parameter> - + <parameter name="popuppage" property="popupPage" required="yes"/> - <parameter name="popupparameters" property="popupParameters" required="no"/> + <parameter name="popupparameters" property="popupParameters" required="no"/> - + <reserved-parameter name="name"/> <reserved-parameter name="href"/> - + <inject property="listenerInvoker" object="infrastructure:listenerInvoker"/> <inject property="script" type="script" object="PopupLinkSubmit.script"/> - + </component-specification> }}} @@ -103, +103 @@ /** * Implements a component that submits its enclosing form via a JavaScript link. [<a * href="../../../../../ComponentReference/LinkSubmit.html">Component Reference</a>] - * + * * @author Richard Lewis-Shell * @version $Id$ */ @@ -168, +168 @@ builder.addln("function {0}(form, elementId, url)", "submitPopupLink"); builder.begin(); - builder.addln("var form = document.getElementById(form);"); + builder.addln("var form = document.getElementById(form);"); - builder.addln("form.events.submit(elementId);"); + builder.addln("form.events.submit(elementId);"); builder.addln("aWindow = window.open(url, '" + PopupDirectLink.POPUP_WINDOWNAME + "', " + PopupDirectLink.POPUP_FEATURES + ", false);"); builder.addln("aWindow.focus();"); @@ -259, +259 @@ * Copy of AbstractSubmit */ public abstract class CustomSubmit extends AbstractFormComponent { - + /** * Determine if this submit component was clicked. - * + * * @param cycle * @param name * @return true if this submit was clicked @@ -277, +277 @@ if (isClicked(cycle, getName())) handleClick(cycle, getForm()); } - + void handleClick(final IRequestCycle cycle, IForm form) { if (isParameterBound("selected")) @@ -308, +308 @@ // Invoke 'listener' now, but defer 'action' for later if (listener != null) listenerInvoker.invokeListener(listener, CustomSubmit.this, cycle); - + if (action != null) { Runnable notify = new Runnable() { @@ -317, +317 @@ listenerInvoker.invokeListener(action, CustomSubmit.this, cycle); } }; - + form.addDeferredRunnable(notify); } } @@ -341, +341 @@ public abstract Object getParameters(); /** Injected */ - public abstract ListenerInvoker getListenerInvoker(); + public abstract ListenerInvoker getListenerInvoker(); } }}} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
