Ok, All I'm trying to do is plop transparent text on a @Image derivative
 
So I tried this... (btw, the JSEclipse plugin is frickin fab)
 
var divBlock = document.createElement("div"); 
var imageDom = document.getElementById("Image_" + i); imageDom.style.background 
= 'none transparent'; 
 
var transparentText = imageDom.getAttribute('transparentText'); 
var transparentNode = imageDom.getAttributeNode('transparentText'); 
 
var textNode = document.createTextNode(transparentText); 
divBlock.appendChild(textNode); 
imageDom.appendChild(divBlock);
 
Both transparentText & transparentNode  are null on return
 
Here is my usage of tapestry again...
 
<div jwcid="[EMAIL PROTECTED]">
<img jwcid="[EMAIL PROTECTED]"
transparentText="ognl:currentObject.transparentText"
model="ognl:currentObject"
image="ognl:photoAsset"
alt="ognl:currentObject.photo.fileName"
title="ognl:currentObject.photo.fileName" width="160" height="120"
listSize="ognl:collection.size" 
/>
</div> 
 
It is like the transparentText attribute is vanished from the dom tree ???
Any pointers are again appreciated... and apologies for the post.Best regards 
Ken in nashuapackage org.trails.demo.components;
import org.apache.tapestry.IAsset;import 
org.apache.tapestry.annotations.ComponentClass;import 
org.apache.tapestry.annotations.Parameter;import 
org.apache.tapestry.html.Image;import org.trails.demo.ITransparentText;
/** * Overlays transparent text * <p/> * * @author kenneth.colassi    [EMAIL 
PROTECTED] */@ComponentClass(allowBody = true, allowInformalParameters = 
true)public abstract class TransparentTextImage extends Image implements 
ITransparentText{ @Parameter(required = true, cache=true) public abstract 
String getTransparentText(); public abstract void setTransparentText(String 
transparentText);  @Parameter(required = true, cache=true) public abstract 
Object getModel(); public abstract void setModel(Object bytes);  
@Parameter(required = true, cache=true) public abstract IAsset getImage(); 
public abstract void setImage(IAsset image);  } 
_________________________________________________________________
Connect and share in new ways with Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008

Reply via email to