org.nuiton.web.tapestry5.components
Class SubmitContext

java.lang.Object
  extended by org.nuiton.web.tapestry5.components.SubmitContext
All Implemented Interfaces:
org.apache.tapestry5.ClientElement

Deprecated. was a monkey-patch for a Tapestry 5.0.4 issue. In Tapestry 5.2, the bug remains not solved but this workaround is broken. (your are f*cked).

@SupportsInformalParameters
@Events(value="selected by default, may be overridden")
@Deprecated
public final class SubmitContext
extends Object
implements org.apache.tapestry5.ClientElement

Corresponds to <input type="submit">, a client-side element that can force the enclosing form to submit. The submit responsible for the form submission will post a notification that allows the application to know that it was the responsible entity. The notification is named "selected" and has a String context. The major difference between this component and Tapestry's Submit component is that this component's context is immutable and can, for example, be set to different values within a loop.


Constructor Summary
SubmitContext()
          Deprecated.  
 
Method Summary
 String getClientId()
          Deprecated. Returns the component's client id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubmitContext

public SubmitContext()
Deprecated. 
Method Detail

getClientId

public String getClientId()
Deprecated. 
Returns the component's client id. This must be called after the component has rendered. The id is allocated lazily (first time this method is invoked).

Specified by:
getClientId in interface org.apache.tapestry5.ClientElement
Returns:
client id for the component


Copyright © 2010-2012 CodeLutin. All Rights Reserved.