Monday, 15 April 2013

jsf2 primefaces.js error $browser.msie is null or not an object -



jsf2 primefaces.js error $browser.msie is null or not an object -

i have primafaces selectonemenu. when click on rendered menu dropdown list not coming , browser giving error. using ie 8 , primefaces 5. when alter h:selectonemenu drop downwards works fine. please help , stuck. here's code:

<p:selectonemenu id="app" value="#{refbean.selapp}" rendered="#{refbean.selitem =='sms notification'}"> <f:selectitem itemvalue="select" itemlabel="select application"></f:selectitem> <f:selectitems value="#{refbean.applist}"></f:selectitems> <f:ajax event="change" execute="@this" render="shownotif" listener="#{refbean.setnotificationvalues}"> </f:ajax> </p:selectonemenu> tried using <script src="http://code.jquery.com/jquery-migrate-1.1.1.js"></script> issue still remains. not able test ajax phone call because drop downwards menu not populated @ in first place. when click on drop downwards menu see javascript error in browser : `$browser.msie null or not object.` here total code : <p:panelgrid id="showoption"> <p:row id="showsms" rendered="#{refbean.selitem =='sms notification'}"> <p:column> <p:outputlabel value="#{msg['createcr.app']}" rendered="#{refbean.selitem =='sms notification'}" styleclass="labeldescription"></p:outputlabel> </p:column> <p:column> <p:selectonemenu id="app" value="#{refbean.selapp}" rendered="#{refbean.selitem =='sms notification'}"> <f:selectitem itemvalue="select" itemlabel="select application"></f:selectitem> <f:selectitems value="#{refbean.applist}"></f:selectitems> <f:ajax event="change" execute="@this" render="shownotif" listener="#{refbean.setnotificationvalues}"> </f:ajax> </p:selectonemenu> </p:column> </p:row> <p:row id="shownotif" rendered="#{refbean.selitem == 'sms notification'}"> <p:column> <p:outputlabel value="#{msg['createcr.notif']}" styleclass="labeldescription"></p:outputlabel> </p:column> <p:column> <p:selectonemenu id="notif" value="#{refbean.selnot}" rendered="#{refbean.selitem == 'sms notification'}"> <f:selectitem itemvalue="select" itemlabel="select notification list"></f:selectitem> <f:selectitems value="#{refbean.nolist}"></f:selectitems> <f:ajax event="change" execute="@this" render="showtext" listener="#{refbean.setselnotification}"></f:ajax> </p:selectonemenu> </p:column> </p:row> </p:panelgrid>

try using jquery-browser-plugin , place jquery.browser.min.js , include in webapp

a jquery plugin browser detection. jquery removed back upwards browser detection on 1.9.1 abstracted jquery plugin

primefaces

No comments:

Post a Comment