Theme do not work in primefaces 5.x

UI Components for JSF
Post Reply
merl.crepsjr
Posts: 15
Joined: 23 Sep 2013, 02:59

23 Nov 2014, 15:53

<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>afterdark</param-value>
</context-param>

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:pm="http://primefaces.org/mobile">

<f:view renderKitId="PRIMEFACES_MOBILE" />
<h:form>
<h:body>
<pm:page id="first" swatch="a">

Above is a section of code from a web page. As you can see the web.xml specifies afterdark and i am using swatch "a".
Is this totally wrong or is something not working with themes is primfaces 5.x which is supposed to include primefaces mobile.

merl.crepsjr
Posts: 15
Joined: 23 Sep 2013, 02:59

23 Nov 2014, 21:22

Note I am using the primefaces.mobile.THEME and the jar is in the classpath. Do theme even work with primefaces mobile

seems like lots of people are having difficult time of this. In primefaces 3.5 worked extremely easy now it is extremely difficult

Any help is truly appreciated

seixas
Posts: 4
Joined: 20 Mar 2015, 12:39

20 Mar 2015, 13:48

merl.crepsjr,
Did you get applying the themes correctly? I'm having the same problems with primefaces 5.x.
Flavio.

Aliraza70
Posts: 1
Joined: 11 Apr 2015, 13:25

11 Apr 2015, 13:40

Sorry, but this is a plain wrong advice. Please substantiate...????

herry1
Posts: 1
Joined: 24 Sep 2015, 06:36

24 Sep 2015, 06:47

Hello,

we have a liferay portlet application over cdi, jsf and primefaces 4.0 working well and want to test new primefaces version 5.0 or 5.1.
After changing version 4 to 5 any view is not rendered and have errors of type:
javax.portlet.faces.BridgeException: java.lang.IllegalStateException: CDATA tags may not nest
at com.liferay.faces.bridge.BridgePhaseResourceImpl.execute(BridgePhaseResourceImpl.java:128)
...

our actual versions are:
<liferay.version>6.1.2</liferay.version>
<com.liferay.cdi.version>6.2.0.2</com.liferay.cdi.version>
<com.liferay.portal.version>6.1.2</com.liferay.portal.version>
<com.liferay.faces.version>3.1.4-ga5</com.liferay.faces.version>
<com.sun.faces.version>2.1.21</com.sun.faces.version>

What needs to change to migrate ?

Thanks in advance.

Kevon584
Posts: 1
Joined: 10 Dec 2015, 11:04

10 Dec 2015, 11:11

Maven's default repository is "maven central". There are a lot of artifacts in there, but some vendors may not have put their artifacts there and primefaces is one of them. Maven will look for the jar in maven central and won't find it. If you don't specify that it should also look in the Primefaces Maven Repository (which does have the artifact), it can't find the artifact.

quangmung6688
Posts: 4
Joined: 30 Apr 2016, 07:14
Location: Viet Nam
Contact:

13 May 2016, 16:45

This theme may have made some basic errors that

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests