Can I use PrimeFaces push with just PrimeFaces and Extensions jars? - jsf

I don't understand how to use PrimeFaces Push when I have PrimeFaces 5.1 jar and PrimeFaces Extensions 2.1.0 in my classpath.
Are there any other jar dependencies that I need to take care of?
Could you please provide me the brief clarification on this, please?

Read Primefaces 5.1 documentation page 12
After that you need to read entire chapter 9. Only after reading that and checking tutorials ask your next question. Please read twice if time permits

Related

How can I update p:photoCam to the lastest version but keep my primefaces in 6.1.RC2?

The p:photocam version for this version of primefaces (6.1.RC2) doesn't work very well, and I need to update it, but due to other reasons I can't update the primefaces.
It is possible?
Thank you all
OK attempt this at your own risk but do the following if you must stay on 6.1.
Download PrimeFaces 8.0 JAR.
Unzip the JAR and find the file \META-INF\resources\primefaces\photocam\photocam.js
Now take the photocam.js from step # 2 and replace it in your PrimeFaces 6.1 JAR in the same location and zip up the 6.1 JAR again.
That should do it but I will not guarantee it will work.

JSF 2.2 displayValueOnly

Is there a possibility to use the option "displayValueOnly" (https://wiki.apache.org/myfaces/DisplayValueOnly) with JSF 2.2?
I think the link above is explaining the feature of Tomahawk which exists only for older JSF versions, right?
Is there a alternative for creating a read and edit mode without creating two elements and without using "readOnly" or "disabled"?
Thank you!
Tomahawk is not compatible with JSF 2.2 - I've tried a few components and they work fine for others you've to work on the Tomahawk source.

How to use different primefaces versions in one project?

In my project I have to implement a page which use primefaces v6.1 but other pages are written in primefaces version 3.
Its hard to update versions for other pages, on the other hand i dont want to use v3 for the new page.
First i have a idea; manipulating primefaces-p.taglib.xml which is in META-INF,
<namespace>http://primefaces6version.org/ui</namespace> . Try to use in the xhtml page:
xmlns:p="http://primefaces6version.org/ui" and components now can be in primefaces 6 versions! But its not worked, i dont know why.
Is there any idea how to use different primefaces versions in same project?
This is not easily possible and would require a lot of work. It would e.g. require fully refactored (classes renamed etc) version of PrimeFaces including everything in the taglibs and more. You could try just creating a customized PF version for just the datatable, but personally I'd bite the apple and upgrade the application.

Arrow and tab navigation on Primefaces Tree Component

To make our application WAI-ARIA conformant, i would like to enable the users to be able to navigate, expand, close nodes on a Primefaces tree compoponent using the arrows, tabs and enter keys. On the PF showcase, I see that the tree is navigable using these keys but when I implement my own, I cant. Could anybody enlighten me how I could achieve this.
Can someone also confirm to me that this feature is only available in the Elite version of Primefaces 5.1.X? If so does anyone know when it would be available on the community version?
I am using the PF 5.1 community version on tomcat 7 container.
Easy to find in the PF issuelist and blog
Answer: Yes, since 5.1.3,
Answer 2: So it will be in a community version for 5.2
How to do this yourself? I'd try to download the tree.js source from PrimeFaces SVN from 5.1 and trunk, compare and try to patch the existing code

Does RichFaces 4.0 contain notifyMessages?

I am following this link to learn about richfaces: http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=notify&sample=notifyMessages&skin=blueSky
But the problem is, when i try rich:notify or rich:notifyMessages, i get an error saying that "The component library http://richfaces.org/rich does not contain component notifyMessages". Can anyone tell me why? I can use other components of richfaces but there is no notify component here.
Thanks
rich:notify* components where introduce in RichFaces 4.1.
Refer to docs:
http://docs.jboss.org/richfaces/latest_4_0_X/Component_Reference/en-US/html/ (rich:notify is not listed)
http://docs.jboss.org/richfaces/latest_4_1_X/Component_Reference/en-US/html/ (rich:notify is there)

Resources