Style to a p:clock element in primefaces

UI Components for JSF
Post Reply
tech4
Posts: 18
Joined: 12 Aug 2014, 00:41

18 Aug 2014, 17:44

I try to put style in a p:clock element with class atribute but i receive the following message:

Code: Select all

java.lang.IllegalArgumentException: Setter not found for property class.
That's another way to define style to a p:clock element?

Xhtml:

Code: Select all

<p:clock pattern="HH:mm" class="clock"/>
Css:

Code: Select all

.clock
{
    border-radius: 0px !important;
}
Primefaces 5 Glassfish

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

20 Aug 2014, 10:35

try styleClass or use jsf2.2 with the passthrough feature, so class becomes pt:class (with pt referencing the correct namespace)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests