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 =)

Filed under: , ,

Comments

# re: Page render incorrectly in JSF with &amp;amp;lt;script&amp;amp;gt; tag

Saturday, September 03, 2005 1:48 AM by icelava

Yet another case of an IDE trying to be too smart. Such "auto edit" features should always be left to the user to enable/disable at will, and _not_ for the IDE to decide.

# re: Page render incorrectly in JSF with &amp;amp;lt;script&amp;amp;gt; tag

Saturday, September 03, 2005 11:46 PM by Shunjie

Yup..indeed. Feel sorry for my friend too as he scratch his head to solve the problem. He 'abandon' VS.NET for sharp develop n dreamweaver to avoid this problem. For me, I cannot stand VS putting in all the 'style' tag inside my html tags as it screw up my defined CSS.

As there is a chinese saying "kia tio ho, mai keh kia"
(Good is enough, don't act good)