Rain 3.1.0: problem with <p:selectOneMenu> in login.xhtml

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
JeeDev_User
Posts: 100
Joined: 26 Sep 2019, 11:02

23 Jan 2023, 14:51

Hi all,

I used login.xhtml which comes with rain template, I mean
rain-3.1.0.zip\tag\src\main\webapp\login.xhtml

modification I made: just after

Code: Select all

 
           <div class="form-group">
                <span><h:outputText value="#{ui_labels.password}" /> </span>
                <p:password placeholder="ADMIN123" value="#{loginBacking.password}" required="true"/>
            </div>
  
i added

Code: Select all

           <div class="form-group">
                 <p:selectOneMenu>
                    <f:selectItem itemLabel="Select One" itemValue=""/>
                    <f:selectItem itemLabel="Option1" itemValue="Option1"/>
                    <f:selectItem itemLabel="Option2" itemValue="Option2"/>
                 </p:selectOneMenu>   
             </div>
Problem: can't open above selectOneMenu, and the error in the browser console is:

Code: Select all

ncaught TypeError: $.escapeSelector is not a function
    setLabel http://localhost:8080/ePisarnica/javax.faces.resource/components.js.xhtml?ln=primefaces&v=11.0.6:21
    highlightItem http://localhost:8080/ePisarnica/javax.faces.resource/components.js.xhtml?ln=primefaces&v=11.0.6:21
    revert http://localhost:8080/ePisarnica/javax.faces.resource/components.js.xhtml?ln=primefaces&v=11.0.6:21
    bindEvents http://localhost:8080/ePisarnica/javax.faces.resource/components.js.xhtml?ln=primefaces&v=11.0.6:21
    jQuery 7
        dispatch
        i
        add
        on
        each
        each
        on
    bindEvents http://localhost:8080/ePisarnica/javax.faces.resource/components.js.xhtml?ln=primefaces&v=11.0.6:21
    init http://localhost:8080/ePisarnica/javax.faces.resource/components.js.xhtml?ln=primefaces&v=11.0.6:21
    Class.extend/e[d]</< http://localhost:8080/ePisarnica/javax.faces.resource/core.js.xhtml?ln=primefaces&v=11.0.6:24
    c http://localhost:8080/ePisarnica/javax.faces.resource/core.js.xhtml?ln=primefaces&v=11.0.6:24
    createWidget http://localhost:8080/ePisarnica/javax.faces.resource/core.js.xhtml?ln=primefaces&v=11.0.6:18
    cw http://localhost:8080/ePisarnica/javax.faces.resource/core.js.xhtml?ln=primefaces&v=11.0.6:18
    <anonymous> http://localhost:8080/ePisarnica/login.xhtml:22
    jQuery 11
        n
        fireWith
        ready
        B
        bindReady
        ready
        init
        e
        support
        <anonymous>
        <anonymous>
What could be the problem?
Any suggestion?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

24 Jan 2023, 10:38

This issue is related to PrimeFaces 11.x core. Could you please try the latest PF11 version? If the problem persists, please create a Github issue.

Best Regards,

JeeDev_User
Posts: 100
Joined: 26 Sep 2019, 11:02

25 Jul 2023, 10:33

Actually, problem lies in the line

Code: Select all

 <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
this line should be dropped

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

01 Aug 2023, 07:20

Thank you, could you please try PF12 or PF11-elite versions?

Post Reply

Return to “Rain - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests