Problem with class="" inside p:

Locked
iljkr
Posts: 35
Joined: 30 Dec 2013, 20:52

06 May 2015, 16:41

About these two topic:

http://forum.primefaces.org/viewtopic.php?f=24&t=42060
http://forum.primefaces.org/viewtopic.php?f=24&t=42061

I discovered that this is the same type of problem: every primefaces tag (beginning with p: ) with the attribute class= inside generate a white page. I can't understand why but this is an important clue. Only the pages with at least a p: tag with a class attribut don't work...
javax.faces-2.3 | primefaces-7 | tomcat 8.5

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 May 2015, 17:34

Does it exist in one of the layout pages we provide?

jens.zech
Posts: 1
Joined: 12 May 2015, 09:42

12 May 2015, 14:49

Yes it exists in "layoutmenu.xhtml"

Example:

Code: Select all

<p:inputText placeHolder="search" class="Fright"/>
Error: javax.servlet.ServletException: Setter not found for property class

Without class attribute it works.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

13 May 2015, 18:37

With JSF 2.1 it will fail, JSF 2.2 will convert it to styleClass automatically in my case, it is a typo from our demos, should have been;

Code: Select all

<p:inputText placeHolder="search" styleClass="Fright"/>
We fixed these today for Spark 1.2 release next week.

So to avoid this, make sure you always use styleClass with JSF components.

Locked

Return to “Spark”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests