0 Replies Latest reply on Jan 19, 2012 4:33 AM by rajivia

    how to apply javascript on jboss portal server

    rajivia

      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.................