0 Replies Latest reply on Jun 28, 2011 3:15 AM by eunnini

    javascripts and css files are not loaded

    eunnini

      When I programmatically create autocomplete component and look to the view source, I see the this javascripts and css files are missing in head:

       

      <script type="text/javascript" src="/jsf2_rich4/javax.faces.resource/richfaces-selection.js.xhtml"></script>
      <script type="text/javascript" src="/jsf2_rich4/javax.faces.resource/AutocompleteBase.js.xhtml?ln=org.richfaces"></script>
      <script type="text/javascript" src="/jsf2_rich4/javax.faces.resource/Autocomplete.js.xhtml?ln=org.richfaces"></script>
      <link type="text/css" rel="stylesheet" href="/jsf2_rich4/rfRes/Autocomplete.ecss.xhtml?db=eAHL6rC8BQAEkAIG&amp;ln=org.richfaces" />

       

      These files are correctly loaded when I'm using rich:autocomple statically on xhtml page, but when I create it dynamically from java class then this

      scripts are missing and component not trigger any event

       

      How to load all scripts on page?