Text support in Toolbar

UI Components for JSF
Post Reply
fouimet
Posts: 2
Joined: 17 Aug 2011, 14:50

17 Aug 2011, 17:05

Hi!

I just started up with primefaces 3.0.M2 and I'm wondering if <p:toolbar> supports text (outputText, outputFormat)?

I tried the following:

Code: Select all

		<p:toolbar>
			<p:toolbarGroup align="right">
					<h:outputText value="footer" />
			</p:toolbarGroup>
		</p:toolbar>
and here is the result:
Image

I'm looking to do some kind of footer/status bar at the bottom and a header bar (bar that shows "Welcome, User" + a couple of image buttons). Does <p:toolbar> supports this or is there another control that would allow this? I tried putting the outputText inside a <p:outputPanel> but it doesn't work either. Seems the toolbar frame gets stretched out only when there are buttons inside.

Thanks for your help

Fred.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

17 Aug 2011, 22:37

Hi,

<p:toolbarGroup align="right"> is a container with float:right and is outside of normally page flow. Try to set float:right for your h:outputText or surround h:outputText with <h:panelGroup layout="block"... style="float:right">
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 72 guests