Issues in PrimeUI

jQuery UI Widgets
Post Reply

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

20 Dec 2012, 14:00

Ok, thanks :) You don't need to double post there and here though.

Babas007
Posts: 251
Joined: 24 May 2011, 09:42

20 Dec 2012, 15:20

I know and i'm sorry for that, but there is one issue tracker for jsf and javascript.

barrysingh102
Posts: 1
Joined: 14 Nov 2019, 17:10

14 Nov 2019, 17:13

0


As a proof of concept I'm trying to use PrimeUI as a basis to build React components. There is an article explaining how to do it by Michael Guterl. It works in JSFiddle

Code: Select all

var Component = React.createClass({
  componentDidMount: function() {
    var themes = new Array('afterdark', 'afternoon');
    $(ReactDOM.findDOMNode(this)).puidropdown({
      data: themes,
      editable: true
    });
  },
  render: function() {
    return <select / >
  }
});

ReactDOM.render( < Component / > , document.getElementById('container'));
but I'm unable to make it work from the inside React application. The error I have 'piudropdown - is not a function' indicates that primeUI is not picked up or somehow not applied. Obviously, I have jquery, jquery-ui and primeui dependencies in package.json. I also can see some primeui related staff in my bundled js file, therefore it is included. So does anyone have any ideas what could be wrong or missing? Is there any suggestions how to debug that sort of issues?

wuckertrhea
Posts: 8
Joined: 23 May 2023, 04:01

22 Jun 2023, 06:48

I'm sorry to break it to you, but javascript and jsf share a single bug tracker. mini crossword

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests