|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDynamicInvoker
Represents "something" that can cause dynamic XHR/JSON requests to be executed as a result of whatever actions the thing that it is attached to normally does.
This interface is more commonly implemented by components like DirectLink or
to decorate existing functionality.
| Method Summary | |
|---|---|
List |
getUpdateComponents()
If set, will be used to update/refresh portions of a response during XHR requests. |
boolean |
isAsync()
Used to specify whether or not the result of this invocation should be returned asynchronously or use normal browser page reload semantics. |
boolean |
isJson()
Used to specify that the return invocation of the response created should be in the "http://json.org" format. |
| Method Detail |
|---|
List getUpdateComponents()
For instance, if you have a page listing projects and you wanted to update an
Any components contents whenever one of the project links was clicked
you would use a DirectLink with the parameters:
updateComponents="{'projectDetails'}"
async="true"
boolean isAsync()
Async being true means responses will be encoded as XML using XmlHttpRequests. If you would like
your request/response to be in another format - like JSON - you must also specify the additional
parameter isJson(). Without setting the getUpdateComponents() parameter
this parameter is pretty useless.
isJson()boolean isJson()
getUpdateComponents() parameter
this parameter is pretty useless.
org.apache.tapestry.IJSONRender}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||