|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsxp.framework.elementprocessing.processors.AjaxBehaviour
public class AjaxBehaviour
This processor will enable Elements with Ajax behaviour.
It an be configured for partial request, so a request will be made
for example when the element is clicked and the normal lifecycle of
view controller will be used on server.
It can also be used with a ElementProcessorCommand
. This is
a command that will be called and executed on the server, when the
Ajax behaviour is used. This is a much easier way of implementing server side
java behaviour for ajax requests.
For advanced configuration set the different properties.
Constructor Summary | |
---|---|
AjaxBehaviour(Element element,
ElementProcessorCommand elementProcessorCommand,
java.lang.String... updateIds)
Instantiates a new resource handler. |
|
AjaxBehaviour(Element element,
java.lang.String... updateIds)
Instantiates a new resource handler. |
|
AjaxBehaviour(java.lang.String event,
Element element,
ElementProcessorCommand elementProcessorCommand,
java.lang.String... updateIds)
Instantiates a new resource handler. |
|
AjaxBehaviour(java.lang.String event,
Element element,
java.lang.String... updateIds)
Instantiates a new resource handler. |
Method Summary | |
---|---|
java.lang.String |
getBody()
|
java.lang.String |
getCallbackFunction()
|
java.lang.String |
getContentType()
|
java.lang.String |
getEvent()
|
int |
getMaxWaitingTimeMS()
|
java.lang.String |
getMethod()
|
java.lang.String[] |
getUpdateIds()
|
java.lang.String |
getUri()
|
void |
process(ViewController renderViewController)
Process elements in the rendering view controller. |
void |
setBody(java.lang.String body)
|
void |
setCallbackFunction(java.lang.String callbackFunction)
|
void |
setContentType(java.lang.String contentType)
|
void |
setEvent(java.lang.String event)
|
void |
setMaxWaitingTimeMS(int maxWaitingTimeMS)
|
void |
setMethod(java.lang.String method)
|
void |
setUpdateIds(java.lang.String[] updateIds)
|
void |
setUri(java.lang.String uri)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AjaxBehaviour(Element element, ElementProcessorCommand elementProcessorCommand, java.lang.String... updateIds)
element
- elementProcessorCommand
- updateIds
- the jsxp id to update on the client. leave blank if all should be updatedpublic AjaxBehaviour(Element element, java.lang.String... updateIds)
element
- the element to processupdateIds
- the jsxp id to update on the client. leave blank if all should be updatedpublic AjaxBehaviour(java.lang.String event, Element element, ElementProcessorCommand elementProcessorCommand, java.lang.String... updateIds)
element
- elementProcessorCommand
- event
- like "onClick" and so onupdateIds
- the jsxp id to update on the client. leave blank if all should be updatedpublic AjaxBehaviour(java.lang.String event, Element element, java.lang.String... updateIds)
element
- the element to processevent
- like "onClick" and so onupdateIds
- the jsxp id to update on the client. leave blank if all should be updatedMethod Detail |
---|
public java.lang.String getBody()
public java.lang.String getCallbackFunction()
public java.lang.String getContentType()
public java.lang.String getEvent()
public int getMaxWaitingTimeMS()
public java.lang.String getMethod()
public java.lang.String[] getUpdateIds()
public java.lang.String getUri()
public void process(ViewController renderViewController)
ElementProcessor
ViewControllerLifeCycle.LifeCyclePhase.ELEMENTPROCESSING
.
process
in interface ElementProcessor
public void setBody(java.lang.String body)
public void setCallbackFunction(java.lang.String callbackFunction)
public void setContentType(java.lang.String contentType)
public void setEvent(java.lang.String event)
public void setMaxWaitingTimeMS(int maxWaitingTimeMS)
public void setMethod(java.lang.String method)
public void setUpdateIds(java.lang.String[] updateIds)
public void setUri(java.lang.String uri)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |