New component pe:statusBar

Community Driven Extensions Project
cfr
Posts: 15
Joined: 11 Jan 2012, 12:27

11 Apr 2012, 14:04

We can also call it pe:outputProgressBar
I think that some people might be confused about the difference to the p:progressbar. But I also agree with you, that the semantic of statusBar is different to the use case. I would vote for pe:outputProgressBar.
I don't know by the way if we need "labelTemplate" attribute at all. Because it's not flexible.
You already said it. Currently I nested a div container with a outputText inside of my progressBar and changed the CSS to display it inside of the progressBar. But for people who don't like to play with CSS it might be useful to have a simple label attribute.

Code: Select all

<p:progressBar value="#{myBean.worskpaceUsage}" styleClass="limits_workspace #{myBean.workspaceProgressbarStyleClass}" >
                                    <div class="progressBarTextDisk"><h:outputText styleClass="span" value="#{myBean.worskpaceUsage}% #{lang.inputDiskSpace} #{myBean.workspaceUsageInfo}"/></div>
                                </p:progressBar>

cagatay.civici
Prime
Posts: 18115
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Apr 2012, 14:09

Isnt't statusBar, client side part of progressbar without ajax?

http://www.primefaces.org/showcase-labs ... essBar.jsf

progressbar widget has setValue and getValue methods to manipulate the ui.

What do I miss?

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

11 Apr 2012, 14:19

Hi Cagatay. No, he (and me) doesn't need client side API or ajax at all. We want to display value from bean. That's all. Only displaying. Think about all h:outputXYZ.

There is one workaround, but it's not optimal viewtopic.php?f=3&t=19165&p=62346#p62346
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

Scott Warner
Posts: 3
Joined: 12 Jun 2012, 18:57

12 Jun 2012, 19:06

I have been trying to use the progress bar in a datalist for status, so I was excited to find this thread. What is the status of this enhancement? I took a look at the issue,i s it possible to add the patch to my project?
Also, is the 0.6 release a release of primefaces extensions?

Thanks
Scott

tandraschko
PrimeFaces Core Developer
Posts: 3629
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

12 Jun 2012, 21:21

0.6 is a release of the extensions project in the future, so it's currently not implemented.
If you look at the issue, there is already an component class + renderer.
Currently you must do it yourself if you would like to use it.
Thomas Andraschko

PrimeFaces Developer | PrimeFaces Extensions Founder

Apache Member | PMC @ OpenWebBeans, DeltaSpike, MyFaces, BVal | Contributor @ TomEE

Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

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

13 Jun 2012, 09:47

I have been trying to use the progress bar in a datalist for status
This is exactly my case too (in datatable). I will take care of this component. It's not difficult, but we set target for 0.6.0 anyway http://code.google.com/p/primefaces-ext ... ail?id=163.
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

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

13 Jun 2012, 21:56

We have re-targeted it for 0.5.1.
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

Scott Warner
Posts: 3
Joined: 12 Jun 2012, 18:57

13 Jun 2012, 22:01

Thanks for the quick response. Do you have any idea when 0.5.1 will be released? Do you think it will be days, weeks or months away? I am evaluating prime faces as our GUI framework and need to check off a box.

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

14 Jun 2012, 10:26

Do you have any idea when 0.5.1 will be released
If everything is fine, this weekend!
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

cagatay.civici
Prime
Posts: 18115
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

14 Jun 2012, 10:38

I have just added this to p:statusBar, when there is initial value specified, it just displays it.

http://code.google.com/p/primefaces/iss ... il?id=4210

Can be used like;

Code: Select all

<p:progressBar value="50" labelTemplate="{value}%" />
Of course value can be retrieved with an EL as well.

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests