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/Tapestry5SubmitContextComponent ------------------------------------------------------------------------------ }}} '''Source:'''[[BR]] - (put this component class into yourApp.components package) + (Modified from T5.0.4. Put it into yourapp.components package.) {{{ // Copyright 2007 The Apache Software Foundation // @@ -32, +32 @@ // See the License for the specific language governing permissions and // limitations under the License. - package your.package.tapestry.components; + package yourapp.components; import org.apache.tapestry.ComponentResources; import org.apache.tapestry.MarkupWriter; @@ -58, +58 @@ * If true, then any notification sent by the component will be deferred until the end of * the form submission (this is usually desirable). */ - <at> Parameter + @Parameter private boolean _defer = true; - <at> Parameter + @Parameter private String _context; - <at> Environmental + @Environmental private FormSupport _formSupport; - <at> Environmental + @Environmental private Heartbeat _heartbeat; - <at> Inject + @Inject private ComponentResources _resources; - <at> Inject + @Inject private Request _request; public SubmitContext() @@ -101, +101 @@ writer.end(); } - <at> Override + @Override protected void processSubmission(FormSupport formSupport, String elementName) { String value = _request.getParameter(elementName); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
