Ankit Dwivedi [
https://community.jboss.org/people/rajivia] created the discussion
"how to apply javascript on jboss portal server"
To view the discussion, visit:
https://community.jboss.org/message/647550#647550
--------------------------------------------------------------
Hi,
I am new on this tech. Currently I am using jsf 1.2 & Jboss Portal server to
develop my application. I want to apply JavaScript on my portlet
But problem is that when we apply java Script and get component value by
*documnet.getElementById([FormName]:[componentId]).value* we can't get component
value. Because when we observer our page source code at browser the copmonent Id become
change.
To avoid this problem I palce my script tag in jboss-portlet.xml. Like this......
<portlet>
<portlet-name>bookMasterRefPortlet</portlet-name>
<header-content>
<script src="/css/test.js"
type="text/javascript"></script>
<link href="/css/style.css" rel="stylesheet"
type="text/css" />
</header-content>
</portlet>
After doing this my problem remain same.
Plz provide some help how to apply javascript.................
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/647550#647550]
Start a new discussion in JBoss Web Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]