[Hippo-cms7-user] Template composer containers, hst:include and empty outputs

Woonsan Ko w.ko at onehippo.com
Mon Jun 18 16:23:13 CEST 2012

Hi Minos / Ard,

On 6/18/12 3:56 AM, Ard Schrijvers wrote:
> For the near future, I introducing a var in the hst:include might be
> useful. This var could contain the byte[] of the child output
> <hst:include ref="..." var="test>
>     <c:if test='var is not empty byte[]'>
>      <div class="hst-container-item">${test}</div>
>     </c:if>
> </hst:include>

This sounds good to me.
But, the variable should be type of string, instead of byte[], because 
the response state already manages the output as char[] and string 
should be better in JSTL.

@Minos, would the following solve your problem then?

<hst:include ref="aChild" var="aChildOut" scope="page">
   <c:if test="${not empty fn:trim(aChild)}">
     <div class="hst-container-item">${aChildOut}</div>



w.ko at onehippo.com     www.onehippo.com
Boston - 1 Broadway, Cambridge, MA 02142
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466

More information about the Hippo-cms7-user mailing list