Hi -

I have a strange problem -  I'm trying to use the packtag tag library
inside a layout-definition that is parent of another layout
definition.  The problem is that somehow in this configuration the
output from the <pack:style> tag is completely blank instead of the
expected <style...> tag.   I can see the packtag code is invoked in
the debugger and it does write the correct output to the stream.
However the output is never included by the layout-render operation.
Interesting thing is that if the layout is invoked directly, the
pack:style tag renders correctly - only when the layout-definitions
are nested does the problem manifest.

Anyone have ideas on this?  I'm guessing it might be some buffer
somewhere that needs to be flushed, but my random attempts to do that
haven't been successful.   I've included a simple example below for
reference.

Many thanks for any help!

Cheers,

Simon.

PS: this is still using Stripes 1.4.x, not 1.5.

==== top-level-layout.jsp ====
<s:layout-definition>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
  <html>
    <head>
      <pack:style>
        <src>stuff.css</src>
      </pack:style>
     ... more stuff ...
   </html>
</s:layout-definition>

==== child-layout.jsp ====

<s:layout-definition>
  <s:layout-render name="/top-level-layout.jsp">
</s:layout-definition>

And the final jsp just invokes the child-layout.jsp:

==== test.jsp ====

<s:layout-render name='/child-layout.jsp'/>

With this configuration, the <pack:style> tag produces nothing!

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to