I came across a really weird thing which has a lot to do
with
jsf page declarations and running javascripts.
here is code for two very simple jsf pages
(note: I have not used any
IDE help to write the declarations)
Now the fun part, if example2.jsp is run, nothing is shown(blank page) however if you remove the <script></script>
it runs fine.
Note: The javascript file is in the proper location and is being referenced correctly by example1.jsp
Am I missing something here? I have written working apps before with example1.jsp syntax
and the visual web apps with example2.jsp declaration style with extra xmlns attribute for woodstock component library
But this completely caught me offguard, my reference for this syntax was core jsf book.