<pe:clipboard> is not working in jsf environment even commons-lang3-3.0 & primefaces-extensions-0.6.3 are added

Community Driven Extensions Project
Post Reply
SumitM
Posts: 1
Joined: 03 Aug 2022, 10:13

03 Aug 2022, 10:32

1.//#Below is jsf code for pe clipboard.(.xhtml page)

<p:commandButton id="copyUrl" value="Copy URL" icon="pi pi-copy"/>
<pe:clipboard id="clipBoard" trigger="copyUrl" action="copy" text="#{controller.copyUrl(Id)}" > </pe:clipboard>

2.//#Below is java backed controller code.
public String copyUrl(long Id) {
if (Id > 0) {
return "Success in copy http://test.com";
} else {
return "Error in copy url";
}
}


3.#// Also added the taglib for primefaces extension -> xmlns:pe="http://primefaces.org/ui/extensions"

4#// And inside lib folder added two .jar dependencies -> commons-lang3-3.0.jar & primefaces-extensions-0.6.3.jar
[Project is ant environment project and prime-faces version 5.3 version using with front-end- .xhtml(jsf) and back-end java]


With this configuration the pe:clipboard is not working. any suggestion on this. Please reply.

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

16 Aug 2022, 13:33

Clipboard was not introduced until PFE 6.1.0 so using 0.6.3 does you no good.

See release notes and dates: https://github.com/primefaces-extension ... ease-Notes
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

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests