Revision: 1368 http://stripes.svn.sourceforge.net/stripes/?rev=1368&view=rev Author: bengunter Date: 2010-12-05 05:25:24 +0000 (Sun, 05 Dec 2010)
Log Message: ----------- Partial fix for STS-788. This fixes the bug illustrated by the first test in the example application attached to the issue. The second test is a different bug that will require more work. Modified Paths: -------------- branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutComponentTag.java Modified: branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutComponentTag.java =================================================================== --- branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutComponentTag.java 2010-12-03 16:49:24 UTC (rev 1367) +++ branches/1.5.x/stripes/src/net/sourceforge/stripes/tag/layout/LayoutComponentTag.java 2010-12-05 05:25:24 UTC (rev 1368) @@ -38,6 +38,7 @@ private String name; private LayoutContext context; private boolean silent; + private Boolean componentRenderPhase; /** Gets the name of the component. */ public String getName() { return name; } @@ -163,6 +164,8 @@ log.debug("Component was not present in ", context.getRenderPage(), " so using default content from ", context.getDefinitionPage()); + componentRenderPhase = context.isComponentRenderPhase(); + context.setComponentRenderPhase(true); context.getOut().setSilent(false, pageContext); return EVAL_BODY_INCLUDE; } @@ -209,6 +212,10 @@ if (isCurrentComponent()) context.setComponent(null); + // If the component render phase flag was changed, then restore it now + if (componentRenderPhase != null) + context.setComponentRenderPhase(componentRenderPhase); + // Restore output's silent flag context.getOut().setSilent(silent, pageContext); @@ -217,6 +224,7 @@ finally { this.context = null; this.silent = false; + this.componentRenderPhase = null; } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ Stripes-development mailing list Stripes-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-development