Any development about JavaScript support with 5.0.5 or 5.0.6? I haven't tried OutputRaw yet.
Currently I get this error when trying to link to a JS file: <div class="t-exception-message">Unable to resolve page 'js/effects' to a known page name. Available page names: Start, core/ExceptionReport, core/PropertyDisplayBlocks, core/PropertyEditBlocks.</div> Alexandru Dragomir wrote: > > By now , as already mentioned several times , javascript support in tap 5 > is not yet fully implemented. > Till then , the way to go is using OutputRaw (i think.. ) for dinamic > javascript and adding JS file links for static jsvascript. > For dinamic javascript it will be changed probably but can't say when ;) > > You can use both or <t:outputRaw .... /> > starting with 5.0.3 onwards . > > Anyway , for what you tried to do ( linking the calendarJS.js to the page > ) > : i'm not sure how you did it , but it should be used PageRenderSupport : > > @Environmental > PageRenderSupport pageRenderSuport; > > void beginRender(MarkupWriter writer ) { > pageRenderSupport.addScriptLink(calendarJS); > ............ > ........... > } > > > - tap 5.0.4 - > @Inject > @Path("...") > private Asset getCalendarJS(); > > - tap 5.0.3 - > @Inject("...") > private Asset getCalendarJS(); > > > Cheers , > Alex > -- View this message in context: http://www.nabble.com/Javascript-in-T5.0.3-tf3560612.html#a12986630 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]