Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Include Javascript in the JSF page

843842Aug 20 2004 — edited Aug 20 2004

I have found a solution to my javascript include problem in the JSF page. If you encounter one, use this (this applies to Sun's creator and reference implementation):

<f:verbatim>
<script language="JavaScript" src="resources/scriptfile.js" type="text/javascript"></script>
</f:verbatim>

The idea is to user verbatim tag versus direct html include. Also note that I convert the greater and lesser than character to their escaped representation.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2004
Added on Aug 20 2004
1 comment
135 views