Page render incorrectly in JSF with <script> tag
Posted
Friday, September 02, 2005 4:43 PM
by
Shunjie
This is one problem we faced when creating JSP pages using JSF is that
the pages does not render correctly when deployed. In Sun Studio
Creator, the pages will render correctly. However, once deployed and
view in browser, the page will go haywire and the page will render
incorrectly. After 1 whole afternoon,
patrick finally find the solution.
The problem is this, when we add <script></script> tags
into JSF pages inside Sun Studio Creator, the ide will automatically
change to <script/>, causing pages to display incorrectly. Even
if we manually change it back to <script></script>, it will
render out as <script/> again. So in the end, we managed to solve
the problem by using <script><!--Stop touching
this--></script> instead.
Our pages runs perfect now =)