Question for CodeScaner

Community Driven Extensions Project
Post Reply
zsuiqiang
Posts: 146
Joined: 13 Sep 2010, 03:52

15 Oct 2022, 14:51

My code:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:pe="http://primefaces.org/ui/extensions">

<h:head>
    <title>codeScanned</title>
</h:head>

<h:body>
    <h:form>
        <pe:codeScanner width="300" height="300">
            <p:ajax event="codeScanned" listener="#{codeScaner.onScanned}"/>
        </pe:codeScanner>
    </h:form>
</h:body>
</html>
It works in PC ,but not work in phone(display nothing,tooltip nothing)

And i try showcase use the same phone and the same brower,it works.
Who can tell me what's the problem?
primefaces:jakarta:12.0.0.jar,
primefaces-ext:jakarta:12.0.0.jar,
JSF Mojarra 3.0
glassfish-6.2.5,
netbeans 14
IDEA 2022.2.2
Browser: Edge

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

15 Oct 2022, 14:52

@Jepsar is the Code Scanner expert I am sure he will answer.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

jepsar
Posts: 166
Joined: 03 Sep 2014, 11:41
Location: NL / BE
Contact:

15 Oct 2022, 16:41

We use https://github.com/zxing-js/library under the hood. Please check if their demo is working for you.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub: https://github.com/jepsar
Spotify: 90s Rave, Acid, Trance, House

zsuiqiang
Posts: 146
Joined: 13 Sep 2010, 03:52

16 Oct 2022, 06:08

I use the same phone and browser, it works! but my code does't work.
I really don't know what the problem is? somebody can test my code? Who can help me debug my code?
Thanks!
primefaces:jakarta:12.0.0.jar,
primefaces-ext:jakarta:12.0.0.jar,
JSF Mojarra 3.0
glassfish-6.2.5,
netbeans 14
IDEA 2022.2.2
Browser: Edge

jepsar
Posts: 166
Joined: 03 Sep 2014, 11:41
Location: NL / BE
Contact:

16 Oct 2022, 10:57

PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub: https://github.com/jepsar
Spotify: 90s Rave, Acid, Trance, House

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests