OK issue fixed.

My JS files are in src/main/webapp/js/ however the message "Unable to
resolve page 'js/effects' to a known page name." simply means "file not
found". Meaning that some JS files were looking to other JS files that I
forgot to add.

Thanks for the help.


Josh Canfield-2 wrote:
> 
> Where are you putting your js file? Are you trying to dynamically generate
> the js?
> 
> I've been sticking my static js files here:
> src/main/webapp/js/
> 
> and referencing them directly using <script> tags in my layout template
> with
> no problems.
> 
> I haven't tried dynamic js outside of a specific page.
> 
> Josh
> 
> 
> On 10/1/07, jblier <[EMAIL PROTECTED]> wrote:
>>
>>
>> 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#a13002699
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