Typically, something like:

myfile.js:
var MyObj = ...;//some javascript object, with an initialization function that 
would take topLeftText and index.

.java:
@Import(library="path/to/myfile.js")
public class MyComponent {
   ...
   @Inject
   JavaScriptSupport jsSupport;

   void afterRender() {
       jsSupport.addScript("new 
MyObj('%s',%d);",currentObject.getTransparentText(), index);
   }
}

Robert

On Sep 1, 2011, at 9/111:01 PM , Ken in nashua wrote:

> 
> Hi All,
> 
> My old tap 4 code...
> <span jwcid="@Script" 
> script="/org/trails/demo/components/TransparentTextImage.script"
>    topLeftText = "ognl:currentObject.transparentText"
>    index = "ognl:index">
> </span>    
> 
> is there a script component for tap5 ?
> 
> How would you convert this span to operate this logic?
> 
> Thanks
> 
> Best regards 
> and thanks... KEN                                       


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to