Example:
Code: Select all
<p:commandButton id="btAddItem" styleClass="bt bt_add"
action="#{bean.prepareCreateItem}" ajax="false" />
rendered code:
Code: Select all
<button .... >
<span class="ui-button-text">ui-button</span>
</button
Code: Select all
<p:commandButton id="btAddItem" styleClass="bt bt_add"
action="#{bean.prepareCreateItem}" ajax="false" />
Code: Select all
<button .... >
<span class="ui-button-text">ui-button</span>
</button
Code: Select all
<h:head>
<style type="text/css">
.delete{
background-image: url(images/delete.png) !important;
}
</style>
</h:head>
<h:body>
<h:form>
<p:commandButton icon="delete"/>
</h:form>
</h:body>
Sounds good to me. In the meanwhile, or whenever you get a chance, can you update your Profile in User Control Panel, and add a signature similar to mine with your development/test environment, so we all will know...when trying to respond to any/all your future posts? Thank you kindly.rafaeltscs wrote:@smithh032772: yes I did. the h:commandButton it is rendered as I expected. I just wanted to open a thread here to make sure if the p:commandButton is supposed to behave this way.
Users browsing this forum: No registered users and 22 guests