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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -