Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support of InPlace mode for Grid component

  • Loading branch information...
commit 21dcb6f63563e2a7cd04a16bcb85f148f93ca8bb 1 parent 38f335e
@ffacon ffacon authored
View
25 src/main/java/org/apache/tapestry5/portlet/internal/services/PortletLinkSourceImpl.java
@@ -108,7 +108,7 @@ public Link createComponentEventLink(Page page, String nestedId, String eventTyp
// If event starts with serve prefix that means we need to serve a
// resource
- if (eventType!=null && ( isXHR || eventType.startsWith("serve")) )
+ if (eventType!=null && ( eventType.startsWith("serve")) || isXHR )
{
ResourceURL resourceUrl = MimeResponse.class.cast(portletGlobals.getPortletResponse()).createResourceURL();
Link res = new ResourceLinkImpl(resourceUrl, link, portletGlobals.getPortletResponse());
@@ -248,9 +248,30 @@ private boolean isXHR(String containingPageName, String nestedComponentId, Strin
Class cpt = component.getClass();
String cptClassName = cpt.getName();
-
+ //specific check for Grid Component
+ Component Container = componentResources.getContainer();
+ if(Container!=null)
+ {
+ ComponentResources componentContainerResources = Container.getComponentResources();
+ InternalComponentResources internalResContainer = (InternalComponentResources) componentContainerResources;
+ Class cptContainer = Container.getClass();
+ String cptContainerClassName = cptContainer.getName();
+ if(cptContainerClassName.equals("org.apache.tapestry5.corelib.components.Grid"))
+ {
+ boolean inPlaceBound = componentContainerResources.isBound("inPlace");
+ if(inPlaceBound)
+ {
+ ParameterConduit paramInPlaceConduit = internalResContainer.getParameterConduit("inPlace");
+ log.info(cptName+" "+paramInPlaceConduit.toString());
+ return true;
+ }
+ else
+ return false;
+ }
+ }
componentResources.getComponentModel().getEmbeddedComponentIds();
boolean zoneBounded = componentResources.isBound("zone");
+
if(zoneBounded)
{
ParameterConduit paramConduit = internalRes.getParameterConduit("zone");
Please sign in to comment.
Something went wrong with that request. Please try again.