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.
<pe:clipboard> is not working in jsf environment even commons-lang3-3.0 & primefaces-extensions-0.6.3 are added
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
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
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests