when a <p:commandButton have in the class something do not work and get this error:
javax.servlet.ServletException: Setter not found for property class
java.lang.IllegalArgumentException: Setter not found for property class
and if you remove the class "" sticker it works well but would not have the css styles in the <p:commandButton.
<p:commandButton do not work with class="anything"
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
+1T.dot wrote:Use styleClass="..." instead of class="..."
Github Profile: https://github.com/mertsincan
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
There was a typo on our end in dashboard sample, it should be styleClass. New versions of JSF impls convert it to styleClass automatically, old versions just throw this exception.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests