css - Define style to a p:clock element in primefaces -
i try put style in p:clock element
class attribute receive following message:
java.lang.illegalargumentexception: setter not found property class.
that's way define style p:clock
element?
xhtml:
<p:clock pattern="hh:mm" class="clock"/>
css:
.clock { border-radius: 0px !important; }
never use class
. many components you'd use styleclass
instead, here have this:
<p:clock pattern="hh:mm"/> .ui-clock{ border-radius: 0px !important; }
this way of doing described in user guide under "skinning".
Comments
Post a Comment