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 VilleVirtanen: http://wiki.apache.org/tapestry/Tapestry5SubmitContextComponent The comment on the change is: Updated to work with 5.0.12 ------------------------------------------------------------------------------ }}} '''Source:'''[[BR]] - (Modified from T5.0.4. Put it into yourapp.components package.) + (Modified from T5.0.4. Put it into yourapp.components package. Updated to work with 5.0.12 by 9902468.) {{{ // Copyright 2007 The Apache Software Foundation // @@ -88, +88 @@ void beginRender(MarkupWriter writer) { // write a hidden input for the context - String elementName = getElementName(); + //String elementName = getElementName(); + String elementName = getControlName(); //Modified to work with 5.0.12 writer.element("input", "type", "hidden", "name", elementName + "X", "value", _context); writer.end(); @@ -101, +102 @@ { writer.end(); } - + + //protected void processSubmission(FormSupport formSupport, String elementName) @Override - protected void processSubmission(FormSupport formSupport, String elementName) + protected void processSubmission(String elementName) //Modified to work with 5.0.12 { String value = _request.getParameter(elementName); final String context = _request.getParameter(elementName + "X"); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
