Re: script component for tap5

2011-09-01 Thread Robert Zeigler
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...
>  script="/org/trails/demo/components/TransparentTextImage.script"
>topLeftText = "ognl:currentObject.transparentText"
>    index = "ognl:index">
> 
> 
> 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



script component for tap5

2011-09-01 Thread Ken in nashua

Hi All,

My old tap 4 code...



is there a script component for tap5 ?

How would you convert this span to operate this logic?

Thanks

Best regards 
and thanks... KEN