Class CmsSubAppIFrameCommunicationBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.hippoecm.frontend.plugins.standards.perspective.CmsSubAppIFrameCommunicationBehavior
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
public class CmsSubAppIFrameCommunicationBehavior extends org.apache.wicket.behavior.Behavior
Add this
Behavior
to aPerspective
to add an iframe that communicates with the cms using the navigation application communication library.This behavior:
- adds an iframe element with
iFrameElementId
andiFrameElementSrc
- adds javascript to header ( after the navapp-communication script has loaded ) that:
- Connects to the iframe
- Provides an implementation of the Parent API
The application running inside the iframe is responsible for connecting to the cms iframe.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsSubAppIFrameCommunicationBehavior(String iFrameElementId, String iFrameElementSrc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(org.apache.wicket.Component component)
void
renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
-
-
-
Method Detail
-
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bind
in classorg.apache.wicket.behavior.Behavior
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
- Specified by:
renderHead
in interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor
- Overrides:
renderHead
in classorg.apache.wicket.behavior.Behavior
-
-