You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2008/06/11 11:47:41 UTC
[Tapestry Wiki] Trivial Update of "Tapestry5SubmitContextComponent" by
VilleVirtanen
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org