It's hard to answer because it's not really clear what you're doing. Now that you've mentioned it's an @Image derivative, I think I have a better handle.
Your Tapestry is going to translate into HTML. I can't tell if transparentText is a formal or informal parameter. If the former, then your component needs to render the attribute. If the latter, your component needs to allow informal parameters. If you're expecting an <img> with an attribute of transparentText, however, there's no guarantee that's going to work in any given browser. It's not an official attribute of the img tag: http://www.w3.org/TR/html401/struct/objects.html#h-13.2 Tapestry will gladly push it through for you (check the source in your browser), but that doesn't mean that your browser's DOM will make it available. -- Kevin On 1/31/08 4:48 PM, in article [EMAIL PROTECTED], "Ken in nashua" <[EMAIL PROTECTED]> wrote: > > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]