Hi,

what is causing the css style not changing in this TML?

    <body id="${pageBodyId}" class="${getIfIsSearch('search','index')}
${additionalBodyClass}">
 ${theme.imageUrl}
<t:if test="theme">
    <t:if test="theme.imageUrl">
        <style type="text/css">
            .tema {
                background:url("${cdn:prop:theme?.imageUrl}") no-repeat top
center; height:180px;
            }
        </style>
    </t:if>
 </t:if>

Look at ${cdn:prop:theme?.imageUrl}

The value gets from Layout.java:

 @SetupRender
public void setupRender() {
List<BackgroundImage> results =
backgroundImageDAO.findActiveByType(BackgroundImage.Type.CROPPED);
 if (results.size() > 0) {
theme = results.get(0);
logger.debug("Active background image: " + theme.getImageUrl());
 } else {
logger.debug("No active background found:");
}
 }

When the above method is executed the correct theme.getImageUrl() is
printed out and also the correct value is displayed for ${theme.imageUrl}.

The ${cdn:prop:theme?.imageUrl} is not changed - it stays the same.

The cdn binding is our implementation for rotating cdn servers.

Any hints guys?
-borut

Reply via email to