New to JSF, having trouble with JS in JSF

Well I decided to learn by making a project, already did some basic stuff, but the thing that I'm having issues with is JS.

As far as I know for not outputscript and outputstylesheet are pretty similar.

My folder structure

WebContent
|-- META-INF
|-- WEB-INF
|-- resources
|-- css

Philip Freeman

Ranch Hand

Posts: 30

2

posted 5 months ago

Posted by mistake without finishing, continuing here:

My folder structure

WebContent
|-- META-INF
|-- WEB-INF
|-- resources
|-- css

Philip Freeman

Ranch Hand

Posts: 30

2

posted 5 months ago

Ok, dunno wtf is going on here, stuff is getting posted each time I'm in middle of typing. Going to come back later after I type this somewhere else. Sorry for spam and this shit I made. If some mod is reading you can delete I wont mind.

Use the View Page Source option on the displayed webpage. Either the JavaScript should be part of the page view OR there should be a URL link to the JavaScript. If it's a link, try typing that link into your browser's navigation bar to make sure that it's resolving.

If it's a link, also make sure that nothing tries to run the Javascript before the page has finished loading, since otherwise stuff may not reliably be there when you need it.

If you're using Firefox, check the Firebug console for Javascript errors and the net trace for "404" or 500-series errors.

An IDE is no substitute for an Intelligent Developer.

Philip Freeman

Ranch Hand

Posts: 30

2

posted 5 months ago

Cechekd links, they seem fine to me, example of a small one

No errors, and as far as I see nothing is trying to run the Javascript before the page has finished loading.