Sorry for having to post another question to the list so quickly...
but this seems very strange. Here's the code in the JXTemplate:
<jx:set var="colorval"><jx:choose><jx:when
test="${colors.get(block.getColor()).startsWith('/')}">background-image:
url('${
colors.get(block.getColor())}')</jx:when><jx:otherwise>background-color:
${colors.get(block.getColor())}</jx:otherwise></jx:choose></jx:set>
VAL = ${colorval}
<div style="width: 25px; height: 25px; border: 1px solid white; ${colorval};">
Alrighty - sorry if its a little hard to read.. but here's whats
happening. The value of ${colorval} in the line with "VAL =" works
fine and returns the expected result:
VAL = background-image: url('/something/image.gif')
But - when I view the source this is what I see in the style attribute
for the div in the next line:
<div style="width: 25px; height: 25px; border: 1px solid white;
[Lorg.w3c.dom.Node;@125d92c;">
Sssooooo ummm... why does it show as the object reference (or whatever
that is) in the style attribute instead of the actual value as done in
the line before?
Thanks,
- Brent
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]