Hi Thiago,

String s = myEffects.toString()

it does not read the content of the file, but the name of the asset.


Thiago H de Paula Figueiredo wrote
> 
> On Fri, 13 Jan 2012 12:40:37 -0200, angelochen  
> <[email protected]> wrote:
> 
>> is this possible?
>>
>>   @Inject @Path("context:/js/init.photoswipe.js")
>>     private Asset myEffects;
> 
> Yes, but what's the relation of the code above with the subject of your  
> message? Haven't you tried the code above before posting in the mailing  
> list? ;)
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/reading-an-asset-into-a-string-tp5142710p5144020.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to