Align the commandButtons in a facet

UI Components for JSF
Post Reply
shijg123
Posts: 18
Joined: 03 Apr 2012, 11:41

04 Apr 2012, 10:58

<p:dataTable ....>
<f:facet name="header">
<p:commandButton id="viewCommand" value="Add" />
<p:commandButton id="viewCommand" value="Maintain" />
<p:commandButton id="viewCommand" value="View" />
</f:facet>
....
How can I align those command buttons left, now they are in center.

Thanks

3vi
Posts: 27
Joined: 30 Nov 2011, 17:41

04 Apr 2012, 11:55

Try it:

<p:dataTable ....>
<f:facet name="header">
<p:commandButton id="viewCommand" value="Add" style="float:left"/>
<p:commandButton id="viewCommand" value="Maintain" style="float:left"/>
<p:commandButton id="viewCommand" value="View" style="float:left"/>
</f:facet>

:)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests