However, I noticed an unexpected behavior with p:commandButton vs h:commandButton. The difference being that the div's height only incases the the p:commandButton's text and not the whole button. Try this code to see the difference.
Code with h:commandButtons:
Code: Select all
<div class="debug_border" style="display: inline;">
<h:commandButton styleClass="" value="Submit" type="submit"/>
<p:commandButton style="" styleClass="" value="Reset" type="reset"/>
</div>
Code: Select all
<div class="debug_border" style="display: inline;">
<h:commandButton styleClass="" value="Submit" type="submit"/>
<p:commandButton style="" styleClass="" value="Reset" type="reset"/>
</div>
This isn't a huge problem. I'm just trying to understand the difference.
Here is the definition of "debug_border" just to show the impact on the div.
Code: Select all
.debug_border {
border-color: #cd0a0a;
border-style: dashed;
border-width: 1px;
}