Uncaught TypeError: Cannot read property 'cw' of undefined

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
drsarutobi@gmail.com
Posts: 3
Joined: 06 Jun 2019, 03:31

13 Feb 2020, 12:09

When I tried to integrate the demo file by simply copy everything in my project and deploy in Wildfly 18.0.1 I got this error in chrome developer's console

Uncaught TypeError: Cannot read property 'cw' of undefined
pf.cw("InputText","widget_j_idt15_j_idt17",{id:"j_idt15:j_idt17",maxlength:-2147483648});
pf.cw("MorpheusMenu","me",{id:"menu-form:j_idt32"});
pf.cw("Morpheus","widget_tabMenu",{id:"tabMenu",stateful:true,activeIndex:0});
pf.cw("Panel","widget_j_idt58",{id:"j_idt58"});
pf.cw("SelectBooleanCheckbox","widget_j_idt63",{id:"j_idt63"});
pf.cw("SelectBooleanCheckbox","widget_j_idt65",{id:"j_idt65"});
pf.cw("SelectBooleanCheckbox","widget_j_idt67",{id:"j_idt67"});
...

I wonder why the demo war works fine on the same server but not my project. Please kindly advise.

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

28 Feb 2020, 12:40

Interesting! Your project doesn't have PrimeFaces client widgets. Could you please try > pf on browser's console? What is the output?

Best Regards,

drsarutobi@gmail.com
Posts: 3
Joined: 06 Jun 2019, 03:31

18 Mar 2020, 09:22

I managed to make it works now. I found that the javascript script was not properly loaded.
Thank you.

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

19 Mar 2020, 21:42

Glad to hear, thanks a lot for the update!

Best Regards,

Post Reply

Return to “Morpheus - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest