Include external javascript in JSF page through bean varaible? -
generally used <h:outputscript /> refer local scripts , refering external java script used <script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>.
now issue how refer java script dynamically loading through other url case have refer javascript http://150.190.135.41:8700/iportal/jsapi time being using
<script type="text/javascript" src="http://150.190.135.41:8700/iportal/jsapi" /> but me not right approach should dynamic ,so added http://150.190.135.41:8700/iportal/jsapi properties file , in jsf bean initialize variable url.
now can 1 tell me how access xhtml of jsf page? dynamic access needed because ip of iportal different different client.
if have address in backing bean can
<script type="text/javascript" src="#{bean.dynamicaddres}" />
Comments
Post a Comment