My code:
<h:form>
<h:panelGrid columns="3">
<p:inputText id="tweet" binding="#{input1}" label="tweet" styleClass="selectMenu"/>
<p:watermark for="tweet" value="Write a tweet here" />
<p:commandButton style="vertical-align: middle;" value="Submit" action="#{testPageSentimentBean.navigate(input1.value)}"></p:commandButton>
</h:panelGrid>
</h:form>
It renders like this:
Note: the watermark does not show, but that's off topic
How can I vertical align the inputText and the commandButton?