[jboss-dev-forums] [JBoss Web Development] - how to apply javascript on jboss portal server

Ankit Dwivedi do-not-reply at jboss.com
Thu Jan 19 04:33:44 EST 2012


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&containerType=14&container=2112]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120119/ce0b8d59/attachment.html 


More information about the jboss-dev-forums mailing list