Problems with Rio client API and PF6.0

Locked
ybendek
Posts: 99
Joined: 05 Aug 2011, 17:52

17 Jul 2016, 20:48

Hello

I'm upgrading my web app to the last libraries and I'm having issues trying to use the RIO client APIs like Rio.clearMenuState().

Before it works perfectly (PF 5.3 and Rio 3.0.1) but now with the new ones (PF6.0 and Rio3.1.2) when I try to call something like Rio.clearMenuState() I have an error in console:

Code: Select all

VM2274:1 Uncaught ReferenceError: Rio is not defined

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

18 Jul 2016, 23:53

Please try with;

Code: Select all

PF('RioMenu').clearMenuState();

<pr:menu widgetVar="RioMenu" .... />

ybendek
Posts: 99
Joined: 05 Aug 2011, 17:52

19 Jul 2016, 00:25

aragorn wrote:Please try with;

Code: Select all

PF('RioMenu').clearMenuState();

<pr:menu widgetVar="RioMenu" .... />
Then I guess, Rio API cannot be used now?

For example others like Rio.isMobile() cannot be invoked?

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

21 Jul 2016, 14:19

Rio API cannot be used now?
- No, we rewrote RioMenu and client widget. You can use rio menu like widget of primefaces component. Exp;

<pr:menu widgetVar="TestRioMenu" .... />

PF('TestRioMenu').clearMenuState();
PF('TestRioMenu').isMobile();
...
you can use other methods with the value of widgetVar.

Locked

Return to “Rio”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest