|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tacos.ajax.impl.InjectAjaxComponentRenderWorker
Adds method call before AbstractComponent.renderComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)
which calls the AjaxWebRequest
, if available, to get the correct
IMarkupWriter
to use to render itself, based on the unique component id of
the IComponent
being rendered.
Constructor Summary | |
InjectAjaxComponentRenderWorker()
|
Method Summary | |
protected String |
buildMethodCallBack(IComponentSpecification spec,
org.apache.hivemind.service.MethodSignature method,
org.apache.hivemind.service.MethodSignature accessor)
Builds the new enhanced render method which calls ResponseBuilder to get the correct writer
to use for method. |
protected org.apache.hivemind.service.MethodSignature |
createAjaxRequestAccessor(EnhancementOperation op,
IComponentSpecification spec)
Creates an accessor method on the IComponent being enhanced
so it can access the AjaxWebRequest at runtime. |
void |
performEnhancement(EnhancementOperation op,
IComponentSpecification spec)
|
void |
setAjaxRequest(AjaxWebRequest ajaxRequest)
Injected ajaexRequest reference. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InjectAjaxComponentRenderWorker()
Method Detail |
public void setAjaxRequest(AjaxWebRequest ajaxRequest)
ajaxRequest
- public void performEnhancement(EnhancementOperation op, IComponentSpecification spec)
performEnhancement
in interface EnhancementWorker
protected org.apache.hivemind.service.MethodSignature createAjaxRequestAccessor(EnhancementOperation op, IComponentSpecification spec)
IComponent
being enhanced
so it can access the AjaxWebRequest
at runtime.
op
- spec
-
MethodSignature
of the created accessor.protected String buildMethodCallBack(IComponentSpecification spec, org.apache.hivemind.service.MethodSignature method, org.apache.hivemind.service.MethodSignature accessor)
ResponseBuilder
to get the correct writer
to use for method.
spec
- method
- accessor
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |